show/hide child splitter window

Tech-Archive recommends: Fix windows errors by optimizing your registry




hi there

i have an app which has, as its main view layout, a series of nested
splitters

one of these nested splitters i want to be a 'dynamically changing
splitter layout'

that is, the user selects a different task to perform, and this
splitter child window 'changes' to show the different task layout

the way i have implemented it so far is each Task manager object
creates its own child splitter window into the same pane of the main
splitter window

thus

in mainfrm:

CSplitterWnd m_wndMainSplitter;
m_wndMainSplitter.CreateStatic(...);


in TaskMgr1:

CSplitterWnd m_wndChildSplitter;

m_wndChildSplitter.CreateStatic(
&m_wndMainSplitter,
...,
m_wndMainSplitter.IdFromRowCol(1, 0);



and similarly in TaskMgr2:

CSplitterWnd m_wndChildSplitter;

m_wndChildSplitter.CreateStatic(
&m_wndMainSplitter,
...,
m_wndMainSplitter.IdFromRowCol(1, 0);



then i use m_wndChildSplitter.ShowWindow(SW_SHOW/SW_HIDE) to try and
switch between child splitters

BUT, this doesn't work!!!

what is the best way to achieve my goals????


tia
bhu

.



Relevant Pages

  • Re: Change views layout
    ... to be in the following layout after a user choose that option: ... Do I have to delete the splitter ... Hmm... ... it doesn't decribe what I exactly want to do, ...
    (microsoft.public.vc.mfc)
  • Re: Minimum pane size in a CSplitterWnd
    ... > Dave wrote: ... >> drag the splitter past this minimum. ... You have the MFC source code for CSplitterWnd. ... to make this possible from class wizard? ...
    (microsoft.public.vc.mfc)
  • Re: about the size limitation on the frame
    ... You can limit the user dragging. ... use your class instead of CSplitterWnd. ... Add OnMouseMove message handler ... This makes the splitter respond to the mouse during dragging only when ...
    (microsoft.public.vc.mfc)
  • Re: outlook type interface
    ... Override CMainFrame::OnCreateClient and create a vertical splitter as ... the main child ... CSplitterWnd m_wndVert; ... > exisiting SDI Client in the space on the right ...
    (microsoft.public.vc.mfc)
  • Re: Minimum pane size in a CSplitterWnd
    ... Dave wrote: ... > the splitter any closer than a certain distance from the edge of the window. ... You have the MFC source code for CSplitterWnd. ...
    (microsoft.public.vc.mfc)