
Change title for dialog box dynamically
Roy,
I think you need to do this in InitDialog. So pass the title to the
constructor.
HTH Andreas
Quote:
> I create a dialog box in visual studio and assign a title 'Old Title' for
> the dialog. I want to change the title dynamically by calling
> dlg.SetWindowText("New Title");
> before I call dlg.DoModal();
> However, the dialog still shows the "Old Title".
> What is wrong here?