Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to dynamically move a floating pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to dynamically move a floating pane

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


Joined: 22 April 2008
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgpw Quote  Post ReplyReply Direct Link To This Post Topic: How to dynamically move a floating pane
    Posted: 22 April 2008 at 8:49am
Hi

I have a floating pane window that I would like to dynamically re-position (in screen co-ordinates).  Basically, I would like the window to retain its floating status but be somewhere else on the screen.

Thanks to some other posts on this forum I have been able to re-size the window to the desired size but when I try to move the window my code has no effect.

I have tried deriving from CXTPDockingPane and then calling the protected method SetWindowRect(CRect) but this did not work.

Does anybody know of an approach that I should take?

Thanks in advance
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 22 April 2008 at 1:17pm
Hi,
 
Try 
m_paneManager.FloatPane(CXTPDockingPaneBase* pPane, CRect rc);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mgpw View Drop Down
Newbie
Newbie


Joined: 22 April 2008
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgpw Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 12:11pm
Hi Oleg

That worked perfectly

Thank you very much for a quick response - especially at a busy time
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.393 seconds.