LRESULT CChildFrame::OnCustomPostCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{ 
    SetSplitterPos(300); 

    OpenCompositeDocument(m_szFileName); 
    return 0;
} 
void FSplitterWindow::OnOff()
{
    int nSplitterPos = GetSplitterPos();

    if (nSplitterPos == m_cxyMin)
    {
        nSplitterPos = m_LastPos;
        if (nSplitterPos < MinOpenSplitterWidth)
            nSplitterPos = OpenSplitterWidth;
    }
    else
    {
        m_LastPos = nSplitterPos;
        nSplitterPos = 0;
    }
    SetSplitterPos( nSplitterPos);

}
Example #3
0
LRESULT CModelRawHierView::OnCreate (UINT uMsg, 
	WPARAM wParam, LPARAM lParam, BOOL &bHandled) 
{

	//
	// Create the treeview
	//

	m_wnd .Create (m_hWnd, rcDefault, _T (""), 
		WS_CHILD | WS_VISIBLE, WS_EX_CLIENTEDGE, (HMENU) 0, 0);

	//
	// Create the text window
	//

	m_wndText .Create (m_hWnd, rcDefault, _T (""),
		WS_CHILD | WS_VISIBLE, WS_EX_CLIENTEDGE, (HMENU) 0, 0);

	//
	// Set the size of the splitter
	//

	SetSplitterExtendedStyle (0, SPLIT_PROPORTIONAL);
	CRect rect (0, 0, 1000, 1000);
	SetSplitterRect (rect);
	SetSplitterPos (250);

	//
	// Set the splitter panes
	//

	SetSplitterPanes (m_wnd .m_hWnd, m_wndText .m_hWnd);
	bHandled = FALSE;

	//
	// Update bottom
	//

	OnNodeChange (0, TVI_ROOT);
	return TRUE;
}