Chet Simpson
April 24th, 1999, 01:19 AM
I have just started a project which uses the SDI interface and a 2 pane splitter. I replaced the CChildView class created by the wizard with a CSplitterView derived object and everything seems to work fine. However, I would like some opinions on if I will run into problems with the method I chose to do this:
The splitter view is created in CMainFrame::OnCreate(). I create my own CCreateStruct with all members initialized to NULL except m_pCurrentFrame which is set to 'this'. This is normally created in OnCreateClient(). Any possible problems?
CMainFrame::OnCmdMsg() calls the OnCmdMsg() method in the splitter object.
OnCreateClient() is not overridden (as it normally is in splitter based apps).
Opinions?
The splitter view is created in CMainFrame::OnCreate(). I create my own CCreateStruct with all members initialized to NULL except m_pCurrentFrame which is set to 'this'. This is normally created in OnCreateClient(). Any possible problems?
CMainFrame::OnCmdMsg() calls the OnCmdMsg() method in the splitter object.
OnCreateClient() is not overridden (as it normally is in splitter based apps).
Opinions?