Print Page | Close Window

Regarding Width of the docking pane

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=14134
Printed Date: 03 December 2024 at 1:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Regarding Width of the docking pane
Posted By: terminator_123
Subject: Regarding Width of the docking pane
Date 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




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