Print Page | Close Window

Sizing a floating pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3034
Printed Date: 09 November 2025 at 9:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sizing a floating pane
Posted By: Scott
Subject: Sizing a floating pane
Date Posted: 14 October 2005 at 3:29pm

I want to be able to set the size of a pane ( only when it is floating ). I tried using MFC's SetWindowPos, but it seems to work then jumps right back to the old size...

Any suggestions???

Scott




Replies:
Posted By: Oleg
Date Posted: 14 October 2005 at 11:58pm

Hi,

 CXTPDockingPane* pPane = GetDockingPaneManager()->FindPane(IDR_PANE1);

 if (pPane && pPane->IsFloating())
 {
  CXTPDockingPaneTabbedContainer* pParentContainer =
   (CXTPDockingPaneTabbedContainer*)pPane-> ;GetContainer();

  CFrameWnd* pFrame = pParentContainer->GetParentFrame();
  ASSERT_KINDOF(CXTPDockingPaneMiniWnd, pFrame);

  pFrame->SetWindowPos(0, 0, 0, 500, 500, SWP_NOZORDER|SWP_NOMOVE);
 }



-------------
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