Change the caption of the dialog box 
Author Message
 Change the caption of the dialog box

Hi,
I have created a dialog resource CMyDialog (with wizard).
CMyDialog *dlg = new CMyDialog();
Now I want to show this dialog with the caption specified by the string
CString title;

How to do this ?
Thanks



Tue, 25 Oct 2005 18:26:50 GMT  
 Change the caption of the dialog box

Quote:
>-----Original Message-----
>Hi,
>I have created a dialog resource CMyDialog (with wizard).
>CMyDialog *dlg = new CMyDialog();
>Now I want to show this dialog with the caption specified
by the string
>CString title;

>How to do this ?
>Thanks

dlg->SetWindowText("New Name");


Wed, 26 Oct 2005 02:24:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How do I change the caption on an MFC Dialog box (dynamically)

2. Window Caption for a Dialog Box Control

3. How to change on runtime the caption of a C++ dialog app main window

4. How to change on runtime the caption of a C++ dialog app main window

5. Changing a Dialog's CAPTION during runtime

6. Changing Dialog Caption at run-time

7. Changing Dialog Caption during run time

8. Dialogs or not. Draw text or change caption

9. Change to Dialog caption on the fly?

10. Changing the Caption of a Modal Dialog at Runtime

11. Changing a dialog caption at run time

12. Dialogs changing caption text

 

 
Powered by phpBB® Forum Software