I have an application where i am using splitter wnds inside spliltter
wnds inside splitter wnds. The problem that i have is that the
outer-most spliltter wnd will not resize properly. It just move a
little bit each time i try to resize the splitter. If i change the
outer-most spliltter wnd to a CSplitterWnd, then the problem goes away.
Does anyone have any suggestions. Here is the code from the
MainFrm:OnCreateClient
// Create the first two rows to split the Data Window and the Properties View
if (!m_wndDataPropertiesSplitter.CreateStatic(this,
2, 1   ;
))
return false;
// Split the Top Row into the Navigation View and the ContentView columns
if (!m_wndNavigationContentSplitter.CreateStatic (&m_wndDataPropertiesSplitter,
1, 2,
WS_CHILD | WS_VISIBLE | WS_BORDER,
m_wndDataPropertiesSplitter.IdFromRowCol (0, 0)
))
return false;
// Add the Properties View to the bottom row
if (!m_wndDataPropertiesSplitter.CreateView (1, 0,
RUNTIME_CLASS (CPropertiesView), CSize (0, 0), pContext))
return false;
// Make the top row at least 200 px big and ideally 500 pix big
m_wndDataPropertiesSplitter.SetRowInfo (0, 200, 200);
m_wndDataPropertiesSplitter.SetRowInfo (1, 200, 0);
m_wndDataPropertiesSplitter.SetSplitterStyle (XT_SPLIT_DOTTRACKER);
// Add the Navigatino View to the first column
if (!m_wndNavigationContentSplitter.CreateView (0, 0,
RUNTIME_CLASS (CNavigationView), CSize (200, 50), pContext))
return false;
// Splilt the Conent View into the Content Row and the Caption Row
if (!m_wndContentCaptionSplitter.CreateStatic(&m_wndNavigat ionContentSplitter,
2, 1,
WS_CHILD | WS_VISIBLE | WS_BORDER,
m_wndNavigationContentSplitter.IdFromRow Col (0, 1)// TODO: adjust the
number of rows, columns
))
return false;
// Add the CaptionView to Row 1
if (!m_wndContentCaptionSplitter.CreateView (0, 0,
RUNTIME_CLASS (CCaptionView), CSize (0, 40), pContext))
return false;
// Add the Contnet View to Row 2
if (!m_wndContentCaptionSplitter.CreateView (1, 0,
RUNTIME_CLASS (CContentView), CSize (0, 0), pContext))
return false;
Any help would be appreciated.
|