CMainFrame MDI ? Size and Title don't seem to work here
Posted on 2006-04-23
I am new to this doc/view architecture and have only really used dialogs with MFC. Also I have just swithed over to .NET.
I have an MDI app and I can't seem to get the OnSize funtion to work, nor can I update the windowText.
I would normally catch the message for the OnSize/WM_SIZE, then lets just say...use this to set the MainFrame window title.
I tried this: (what am I doing wrong?)
void CMainFrame::OnSize(UINT nType, int cx, int cy)
CMDIFrameWnd::OnSize(nType, cx, cy);
newTitle.Format("( %d, %d )", cx, cy);
Just to clarify:
I want to get the onSize from the mainFrame, and set its title.(NOT THE CHILD WINDOWS)