Print Page | Close Window

15.1.3. Problem with nested CXTPSplitterWnd

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=18998
Printed Date: 18 June 2025 at 9:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: 15.1.3. Problem with nested CXTPSplitterWnd
Posted By: aceproof
Subject: 15.1.3. Problem with nested CXTPSplitterWnd
Date Posted: 29 September 2011 at 6:34am

I am using nested splitters CXTPSplitterWnd:

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
     if (     !m_wndSplitterHorz.CreateStatic(this, 2, 1)
        ||    !m_wndSplitterHorz.CreateView(1, 0, RUNTIME_CLASS(CXTPReportView), CSize(100, 100), pContext))
          return FALSE;
 
     if (     !m_wndSplitterVert.CreateStatic(&m_wndSplitterHorz, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitterHorz.IdFromRowCol(0, 0))
        ||    !m_wndSplitterVert.CreateView(0, 0, RUNTIME_CLASS(CXTPReportView), CSize(100, 100), pContext)
        ||    !m_wndSplitterVert.CreateView(0, 1, RUNTIME_CLASS(CXTPReportView), CSize(100, 100), pContext))
          return FALSE;
 
     m_wndSplitterHorz.SetRowInfo(0, 630, 0);
     m_wndSplitterVert.SetColumnInfo(0, 630, 0);
 
     CXTPControlTheme::SetTheme(m_hWnd, xtpControlThemeOffice2003);
 
     //return CMainFrameParrent::OnCreateClient(lpcs, pContext);
     return TRUE;
}

Horizontal splitter can not be moved. And so with all the splitters who have sub splitters. If you set
m_wndSplitterHorz.EnableFullDrag(0)
everything works properly, but without full drag




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net