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

CXTPSplitterWnd

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


Joined: 05 September 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote phegaro Quote  Post ReplyReply Direct Link To This Post Topic: CXTPSplitterWnd
    Posted: 05 September 2004 at 8:22pm
I have an application where i am using splitter wnds inside spliltter wnds inside splitter wnds. The problem that i have is that the outer-most spliltter wnd will not resize properly. It just move a little bit each time i try to resize the splitter. If i change the outer-most spliltter wnd to a CSplitterWnd, then the problem goes away. Does anyone have any suggestions. Here is the code from the MainFrm:OnCreateClient

    // Create the first two rows to split the Data Window and the Properties View
    if (!m_wndDataPropertiesSplitter.CreateStatic(this,
        2, 1           ;  
        ))
        return false;

    // Split the Top Row into the Navigation View and the ContentView columns
    if (!m_wndNavigationContentSplitter.CreateStatic (&m_wndDataPropertiesSplitter,
        1, 2,
        WS_CHILD | WS_VISIBLE | WS_BORDER,
        m_wndDataPropertiesSplitter.IdFromRowCol (0, 0)
        ))
        return false;


    // Add the Properties View to the bottom row
    if (!m_wndDataPropertiesSplitter.CreateView (1, 0,
        RUNTIME_CLASS (CPropertiesView), CSize (0, 0), pContext))
        return false;

    // Make the top row at least 200 px big and ideally 500 pix big
    m_wndDataPropertiesSplitter.SetRowInfo (0, 200, 200);
    m_wndDataPropertiesSplitter.SetRowInfo (1, 200, 0);
    m_wndDataPropertiesSplitter.SetSplitterStyle (XT_SPLIT_DOTTRACKER);


    // Add the Navigatino View to the first column
    if (!m_wndNavigationContentSplitter.CreateView (0, 0,
        RUNTIME_CLASS (CNavigationView), CSize (200, 50), pContext))
        return false;

    // Splilt the Conent View into the Content Row and the Caption Row
    if (!m_wndContentCaptionSplitter.CreateStatic(&m_wndNavigat ionContentSplitter,
        2, 1,
        WS_CHILD | WS_VISIBLE | WS_BORDER,
        m_wndNavigationContentSplitter.IdFromRow Col (0, 1)// TODO: adjust the number of rows, columns
        ))
        return false;

    // Add the CaptionView to Row 1
    if (!m_wndContentCaptionSplitter.CreateView (0, 0,
        RUNTIME_CLASS (CCaptionView), CSize (0, 40), pContext))
        return false;

    // Add the Contnet View to Row 2
    if (!m_wndContentCaptionSplitter.CreateView (1, 0,
        RUNTIME_CLASS (CContentView), CSize (0, 0), pContext))
        return false;


Any help would be appreciated.
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.