Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Sizing a floating pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sizing a floating pane

 Post Reply Post Reply
Author
Message
Scott View Drop Down
Newbie
Newbie


Joined: 28 June 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scott Quote  Post ReplyReply Direct Link To This Post Topic: Sizing a floating pane
    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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.