Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - 15.1.3. Problem with nested CXTPSplitterWnd
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

15.1.3. Problem with nested CXTPSplitterWnd

 Post Reply Post Reply
Author
Message
aceproof View Drop Down
Newbie
Newbie


Joined: 24 March 2008
Location: Russian Federation
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote aceproof Quote  Post ReplyReply Direct Link To This Post Topic: 15.1.3. Problem with nested CXTPSplitterWnd
    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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.