Shortcut bar with CView derived pane |
Post Reply |
Author | |
mailhaim
Newbie Joined: 28 September 2005 Status: Offline Points: 26 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |