Re: How to embed a CFrameWnd-derived class into one of CSplitterWnd pa
Actually any window can support a control bar - CFrameWnd just handles
layout we'd have to do ourselves :)
I use frame windows all the time as splitter window panes.
It seems you have a problem somewhere else - perhaps destroying a CFrameWnd
twice? Remember CFrameWnds delete themselves when they are destroyed - not
the same behavior as other windows/views.
How are you setting the frame window as a splitter pane?
I use CSplitterWnd::CreateView() and have n problems.
Mark
--
Mark Salsbery
Microsoft MVP - Visual C++
"Kamil Grabowski" <Kamil Grabowski@discussions.microsoft.com> wrote in
message news:AAC40FF0-14C3-48CB-AFB3-76BDE55D5C66@microsoft.com...
I would like to create something similar to Windows Explorer, where the
pane
in a splitter window contains a dialog bar at the top. As only frame
windows
support control bars, I was trying to make CSplitterWnd use a
CFrameWnd-derived class as one of the panes. It doesn't complain initially
and displays the frame window, but after closing the main window I get an
assertion when the framework calls EnsureParentFrame on my main frame
window
in OnCloseDocument(). Do you have any ideas how to make this work?