Regarding Width of the docking pane |
Post Reply |
Author | |
terminator_123
Newbie Joined: 29 October 2007 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 24 April 2009 at 6:59am |
Hi All, I have a question regarding the width of docking panes in normal and docked states. If we create a docking pane with width W and dock it to left side by clicking the pin icon, it seems that the pane width gets shrunk by 4 pixels. But once I pin the pane back by clicking on the icon again, the width will again be reset to W. Is there any way to correctly get the width of the pane even in unpinned/docked state ? Please refer the code below: // creation of docking pane with width = nWidth. Assume m_panemanager is of type CXTPDockingPaneManager CXTPDockingPane* pTOCListPane = m_paneManager.CreatePane(IDR_PANE_OPTIONS, CRect(0, 0, nWidth, 0), xtpPaneDockLeft); // before docking/unpinning if we query width using this code we get nWidth correctly CRect cRect(0,0,0,0); cRect = pTOCListPane->GetPaneWindowRect (); int nWidth = cRect.Width(); // but after docking/unpinning, we get width as ( nWidth - 4 ) Can any one suggest alternative to using +4 as offset. Thanks, Pavan |
|
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 |