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

How to free the Docking Pane ??

 Post Reply Post Reply
Author
Message
amitb View Drop Down
Groupie
Groupie
Avatar

Joined: 13 September 2006
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitb Quote  Post ReplyReply Direct Link To This Post Topic: How to free the Docking Pane ??
    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 ???
}


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: 10 October 2007 at 2:00pm

Hello,

Panes are destroyed automatically.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.