Does anyone know the best (easiest) way to make a pane (and corresponding
view) appear and dissappear on command? Just some overview tips would be
sufficient.
When the command is given to remove the pane, the remaining splitter pane
should enlarge to fill the entire window (and vica versa). If you can give
me tips on doing it by both destroying and recreating the view, or just
hiding the view, I would appreciate it. Please respond to e...@tlcone.com.
thanks,
Emile
I needed the same kind of thing last week and found a class called
CUsefulSplitterWnd at codeguru.com that is derived from the MFC CSplitterWnd and
contains a ReplaceView function. I started with that and the way I use it is to
initially populate all except the first pane with CDummyView, which does nothing
and has (0,0) dimensions. That gives you the first view full screen. To make
panes appear replace a dummy with whatever view you want and to make them
disappear replace the view with CDummyView again.
--
Scott McPhillips [VC++ MVP]