Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

making splitter window pane appear and dissappear

0 views
Skip to first unread message

Émile Carter

unread,
Apr 13, 2000, 3:00:00 AM4/13/00
to
Hi,

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

Scott McPhillips

unread,
Apr 14, 2000, 3:00:00 AM4/14/00
to

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]

0 new messages