add title
-
Hi just implement it in your app's view-class. Just add a line in the OnInitialUpdate:
CMyView::OnInitialUpdate() { SetWindowText("This is my child window title!"); CBaseClassView::OnInitialUpdate(); }
Hope this helps!Olli I feel like I'm diagonally parked in a parallel universe.....
:suss: :rolleyes: :suss: -
Hi just implement it in your app's view-class. Just add a line in the OnInitialUpdate:
CMyView::OnInitialUpdate() { SetWindowText("This is my child window title!"); CBaseClassView::OnInitialUpdate(); }
Hope this helps!Olli I feel like I'm diagonally parked in a parallel universe.....
:suss: :rolleyes: :suss: -
What kind of child window it is? Tomasz Sowinski -- http://www.shooltz.com
Never argue with an idiot, he'll bring you to his level and beat you with experience.
-
What kind of child window it is? Tomasz Sowinski -- http://www.shooltz.com
Never argue with an idiot, he'll bring you to his level and beat you with experience.
-
You could try with GetParentFrame()->SetWindowText(...), but your title will be changed by MFC. To get this right, you need to override the following CMDIChildWnd method:
void OnUpdateFrameTitle(BOOL bAddToTitle);
In your implementation, call 'GetMDIFrame()->OnUpdateFrameTitle(bAddToTitle);' first, then set the caption with a call to AfxSetWindowText (reduces flicker). Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
-
You could try with GetParentFrame()->SetWindowText(...), but your title will be changed by MFC. To get this right, you need to override the following CMDIChildWnd method:
void OnUpdateFrameTitle(BOOL bAddToTitle);
In your implementation, call 'GetMDIFrame()->OnUpdateFrameTitle(bAddToTitle);' first, then set the caption with a call to AfxSetWindowText (reduces flicker). Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.