Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   splitter window (http://www.go4expert.com/forums/splitter-window-t18597/)

answerme 18Jul2009 09:49

splitter window
 
I have a problem with my splitter window My window splitter are comnig perfectly alright but one of my pane which I have marked as bold in below code I cannot resize it accorigndly to my CSIZE.Whatever value iam giving in CSIZE it is not changing ,rest pane are perfectly alright.
Can anyone tell where iam missing .
Code:

BOOL CSplitter_Main::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
        if(!m_wndSplitter.CreateStatic(this, 1, 2)) //,                        // TODO: adjust the number of rows, columns
        {
                return FALSE ;
        }
       
    if (!m_wndSplitter.CreateView(0, 0,RUNTIME_CLASS(CEntityTreeView), CSize(170, 550), pContext))
        {
                TRACE0("Failed to create second pane\n");
                return FALSE;
        }
       
         
        m_wndSplitter1.CreateStatic(&m_wndSplitter, 2,1, WS_CHILD|WS_VISIBLE|WS_BORDER, m_wndSplitter.IdFromRowCol(0,1));
        if (!m_wndSplitter1.CreateView( 0,0,RUNTIME_CLASS(CScenGenView),CSize(1550,650),pContext))
        {
                TRACE0("Failed to create first pane\n");
                return FALSE;
        }
        if(!m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CEntityListView),CSize(10,100),pContext))
               
               
               
}



All times are GMT +5.5. The time now is 23:54.