Print Page | Close Window

direction and xtpPaneTypeAutoHidePanel .

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=12213
Printed Date: 13 May 2025 at 10:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: direction and xtpPaneTypeAutoHidePanel .
Posted By: copycdx2
Subject: direction and xtpPaneTypeAutoHidePanel .
Date Posted: 19 September 2008 at 8:25am
i have two question.
first one is below red-color text.
I Moved and docking pane to left to right and to top,bottom.
direction value is always left.   why?

second qustion is below blue color text.
current pane is autohidepanel.
but, return value of GetType is not xtpPaneTypeAutoHidePanel;
----------------------------------------------------------------

     CXTPDockingPaneInfoList& paneList = m_paneManager.GetPaneList();
    for (POSITION pos = paneList.GetHeadPosition(); pos;)
    {
        XTP_DOCKINGPANE_INFO& dpi = paneList.GetNext(pos);
        if (dpi.pPane != NULL && dpi.pPane->IsHidden())
        {
            CXTPDockingPaneAutoHidePanel* pPaneAuto = (CXTPDockingPaneAutoHidePanel*)dpi.pPane;
            XTPDockingPaneDirection direction = pPaneAuto->GetDirection();

            //if( pPaneBase->GetType() == xtpPaneTypeAutoHidePanel )
            {
            }
        }
    }





Replies:
Posted By: Oleg
Date Posted: 22 September 2008 at 5:50am

its not right

CXTPDockingPaneAutoHidePanel* pPaneAuto = (CXTPDockingPaneAutoHidePanel*)dpi.pPane;
 
dpi.pPane is (CXTPDockingPane*);
 
to get parent you need call
 
dpi.pPane->GetContainer()->GetContainer();
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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