![]() |
direction and xtpPaneTypeAutoHidePanel . |
Post Reply ![]() |
Author | |
copycdx2 ![]() Groupie ![]() Joined: 17 September 2008 Status: Offline Points: 20 |
![]() ![]() ![]() ![]() ![]() 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 ) { } } } |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |