Change button name of FIle dialog
-
Can anyone tell me how to change the caption of the button in a file dialog to a cutomized one..... thanx'n'advance
arshadkc wrote:
Can anyone tell me how to change the caption of the button in a file dialog to
you have to subclass that CFileDialog class, and OnInitDialog of that function you can perform your required function!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief
-
Can anyone tell me how to change the caption of the button in a file dialog to a cutomized one..... thanx'n'advance
Send the button a
WM_SETTEXT
message.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Send the button a
WM_SETTEXT
message.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
DavidCrow wrote:
Send the button a WM_SETTEXT message.
just wondering how to send message to filedialog when filedialog is running in modal state!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief
-
DavidCrow wrote:
Send the button a WM_SETTEXT message.
just wondering how to send message to filedialog when filedialog is running in modal state!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief
This can be done in the dialog's
OnInitDialog()
method (if using MFC), or in response to theWM_INITDIALOG
message.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
This can be done in the dialog's
OnInitDialog()
method (if using MFC), or in response to theWM_INITDIALOG
message.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
DavidCrow wrote:
This can be done in the dialog's OnInitDialog() method (if using MFC), or in response to the WM_INITDIALOG message.
yeah you have subclass to achieve desired result
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief
-
Can anyone tell me how to change the caption of the button in a file dialog to a cutomized one..... thanx'n'advance
I agree with ThatsAlok subclass is easy you need to id of buttons of File Dialog.
WhiteSky