extern MenuHandle NewUniqueMenu() ;
wxChoice::~wxChoice()
{
- // DeleteMenu( m_macPopUpMenuId ) ;
+ if ( HasClientObjectData() )
+ {
+ size_t i, max = GetCount();
+
+ for ( i = 0; i < max; ++i )
+ delete GetClientObject(i);
+ }
+
+ // DeleteMenu( m_macPopUpMenuId ) ;
// DisposeMenu( m_macPopUpMenuHandle ) ;
}
bool wxChoice::Create(wxWindow *parent, wxWindowID id,
}
return wxSize(lbWidth, lbHeight);
-}
\ No newline at end of file
+}