Print Page | Close Window

How to free the Docking 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=8378
Printed Date: 12 December 2024 at 3:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to free the Docking Pane ??
Posted By: amitb
Subject: How to free the Docking Pane ??
Date Posted: 10 October 2007 at 7:12am
class CDocPaneMgr : public CXTPDockingPaneManager
{
   CXTPDockingPane* m_pDocPane;
}

// Constructor
CDocPaneMgr ::Create(...)
{
   m_pDocPane = CreatePane(...);
}



Now since m_pDocPane is a pointer to the newly created Pane, how do i destroy the pane when the job is done??

Means, what should i do in the destructor so that the pane created by CreatePane is destroyed/freed.


// Destructor
CDocPaneMgr::~CDocPaneMgr()
{
   /// How to free the m_pDocPane ???
}





Replies:
Posted By: Oleg
Date Posted: 10 October 2007 at 2:00pm

Hello,

Panes are destroyed automatically.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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