Print Page | Close Window

Call to emulate click the x caption button on pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=15658
Printed Date: 31 January 2025 at 6:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Call to emulate click the x caption button on pane
Posted By: nguyena1
Subject: Call to emulate click the x caption button on pane
Date 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.



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