change title for dialog box dynamically 
Author Message
 change title for dialog box dynamically

I use
dlg.SetWindowText("New Title");
to change the title of a dialog box before I call
dlg.DoModal();
However, the dialog still shows the old title.
What is wrong here?


Thu, 11 Apr 2002 03:00:00 GMT  
 change title for dialog box dynamically
As Ajay Kalra (thanks Ajay) pointed out to me a couple of weeks ago, the
dialog does not exist until DoModal() is called. So....

Invoke SetWindowText("New Title") in OnInitDialog handler.

TFM3

Note: spam-resistant e-mail address

Quote:

>I use
>dlg.SetWindowText("New Title");
>to change the title of a dialog box before I call
>dlg.DoModal();
>However, the dialog still shows the old title.
>What is wrong here?



Thu, 11 Apr 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Change title for dialog box dynamically

2. Change background color of dialog box title

3. Q: Changing a dialog box's title text

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

5. Dynamically changing text of a menu in a Dialog box

6. How to change DialogBox title text dynamically

7. Can I change window's title color dynamically?(no content)

8. Dynamically changing PropertyPage Title

9. Dynamically change a COlePropertyPage title

10. Dynamically changing main window title bar for an MDI app

11. Application Title - how do I change it dynamically

12. help needed changing Property Page titles dynamically

 

 
Powered by phpBB® Forum Software