Added wxComboPopup::DestroyPopup(), which responsibility is to call Destroy() for the popup control and also delete the combo popup object itself. The default implementation should be able to handle common cases.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -767,6 +767,13 @@ public:
|
||||
// Return true for success.
|
||||
virtual bool Create(wxWindow* parent) = 0;
|
||||
|
||||
// Calls Destroy() for the popup control (i.e. one returned by
|
||||
// GetControl()) and makes sure that 'this' is deleted at the end.
|
||||
// Default implementation works for both cases where popup control
|
||||
// class is multiple inherited or created on heap as a separate
|
||||
// object.
|
||||
virtual void DestroyPopup();
|
||||
|
||||
// We must have an associated control which is subclassed by the combobox.
|
||||
virtual wxWindow *GetControl() = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user