|
-
April 29th, 1999, 10:17 AM
#1
Changing the view in a pane . . .
My static (2 pane) splitter works fine, but only AFTER the user moves the vertical split bar. Apparently it redraws itself & all is fine. Could anyone tell me what to add to the code below to get the splitter to draw the panes without the user having to move the bar? The 1st views are created in the CreateClass function (no problem). I was using the following handler to change the views in both panes . . .
void CMainFrame::OnButtonWorkcodes()
{
m_wndSplitter.DeleteView( 0,1 );
if (!m_wndSplitter.CreateView(0, 1,
RUNTIME_CLASS(C
WorkCodesViewRight), CSize(100,100), 0))
{
TRACE0("Failed to create second pane\n");
}
// add a view in the left splitter pane
m_wndSplitter.DeleteView( 0,0 );
if (!m_wndSplitter.CreateView(0, 0,
RUNTIME_CLASS(CWorkCodeViewLeft), CSize(100, 100), 0))
{
TRACE0("Failed to create first pane\n");
}
// activate the input view
SetActiveView((CView*)m_wndSplitter.GetPane(0,0));
RecalcLayout();
}
THANKS FOR ANY S****!
jr
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|