
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?