Print Page | Close Window

Shortcut bar with CView derived pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Shortcut Bar
Forum Description: Topics Related to Codejock Shortcut Bar
URL: http://forum.codejock.com/forum_posts.asp?TID=5515
Printed Date: 27 April 2024 at 5:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Shortcut bar with CView derived pane
Posted By: mailhaim
Subject: Shortcut bar with CView derived pane
Date Posted: 14 November 2006 at 8:10am
I'm trying to use CListView as a pane of a shortcut bar. when the shortcut bar get destroyed, this pane generate assertion.
Can I use CView derived classes as panes of shortcut bar? if yes, is there an example of that ?

Regards, Haim



Replies:
Posted By: Oleg
Date Posted: 14 November 2006 at 8:54am
Hello,
by default CView derived classes destroy self in CView::PostNcDestroy.
 
void CView::PostNcDestroy()
{
 // default for views is to allocate them on the heap
 //  the default post-cleanup is to 'delete this'.
 //  never explicitly call 'delete' on a view
 delete this;
}
 
So, you have to create view dynamically and don't call delete to destroy it.


-------------
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