Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How to open Docking Pane pinned?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to open Docking Pane pinned?

 Post Reply Post Reply
Author
Message
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Topic: How to open Docking Pane pinned?
    Posted: 30 May 2007 at 4:52pm
Starting with its button on the pane manager bar, I want to open a docking pane in "pinned" mode so that it does not self-hide. The reasons for that are 1) so the view resizes itself and 2) the user can work with the docking pane and the view together.

Then I want to close it using the X button, but not delete it. That way its button remains on the pane manager bar to use again.

How?

Thanks,
Michael
Back to Top
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Posted: 14 June 2007 at 12:05pm
You need to turn off "closeable" --- I do it in OnDockingPaneNotify, like this:
 

int nFlag = xtpPaneNoCloseable; // xtpPaneNoHideable, xtpPaneNoFloatable;

DWORD dwOptions = pPane->GetOptions();

dwOptions |= nFlag; //5.10 always OR in the xtpPaneNoCloseable....

pPane->SetOptions(dwOptions);

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.188 seconds.