1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

splitter window

Discussion in 'MFC' started by answerme, Jul 18, 2009.

  1. answerme

    answerme New Member

    Joined:
    Dec 17, 2007
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    0
    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;
    	}
    	[B]if(!m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CEntityListView),CSize(10,100),pContext))[/B]
    		
    		
    		
    }
     

Share This Page