Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Call to emulate click the x caption button on pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Call to emulate click the x caption button on pane

 Post Reply Post Reply
Author
Message
nguyena1 View Drop Down
Groupie
Groupie


Joined: 28 November 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote nguyena1 Quote  Post ReplyReply Direct Link To This Post Topic: Call to emulate click the x caption button on pane
    Posted: 18 November 2009 at 10:26am
Is there a nice clean call I can make that emulates hitting the x button to close a pane.

I don't see anything in dockingpanemanager that will emulate this exactly.  Would be nice because
- if pane is docked, then the tabbedcontainer automatically handles telling panemanager onaction calls with closing, and closed
- if pane is floated, then the miniwnd class has protected onclose function that handles the closing of the panes.

Would be nice if there is a single call somewhere that emulates hitting the x button with desired pane as a parameter. 

Note: I've tried CXTPDockingPaneManager::ClosePane() but that doesn't make all the same calls afterwards, such as the OnDockingPaneNotify message pump to mainfrm.
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.172 seconds.