Prev Previous Post   Next Post Next
Old 25th September 2002, 19:50   #1
Ilitirit
Junior Member
 
Join Date: Nov 2001
Posts: 27
When do button controls etc get deleted?

from examplepopupwnd.cpp:
code:

int ExamplePopupWnd::createChildWindows( void ) {
// We work from a button, just because that's the easiest
// way to get some events to toss up some popup menus on the screen.
ButtonWnd * myButton = new ButtonWnd;
myButton->setNotifyId(1);
myButton->setNotifyWindow(this);
myButton->setButtonText("Click me, bitch!",16);
addChild(StylePosWnd::ChildInfo(myButton,
StylePosWnd::ChildEdgeInfo(160, StylePosWnd::CENTER), // Left
StylePosWnd::ChildEdgeInfo(25, StylePosWnd::CENTER), // Top
StylePosWnd::ChildEdgeInfo(160, StylePosWnd::CENTER), // Right
StylePosWnd::ChildEdgeInfo(25, StylePosWnd::CENTER))); // Bottom
// "A 160x25 button always in the center."

return 1;
}



myButton gets "newed" but where does it get deleted?
same with the PopMenus in the handleChildNotify method.

or is this just one of those things that we don't have to worry about?
Ilitirit is offline  
 
Go Back   Winamp & Shoutcast Forums > Winamp3 > Wasabi Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump