I am writing a MDI application using Visual C++ 6.0 under Windows 98 SE. The application has a few child frames under the main frame. In the CMainFrame::PreCreateWindow function, I set the CREATESTRUCT to include 'cs.style &= ~FWS_ADDTOTITLE' to remove the filenames from the MainFrame titlebar text.
When I maximize any of the child frames, the text of the child frame titlebar is added to the MainFrame titlebar text (ie App [child frame titlebar text]).
I would like to prevent the changing of the MainFrame titlebar text in the situation. I would perfer not to just call SetWindowText in the MainFrame after the maximize. I would like to be able to override some functionality to pervent the MainFrame titlebar text from changing.
Any help would be appreciated.