X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/674ac8b919eecbc201b5f23b470a567cd0565e10..a22be3e1fcf362850fe33d52d55518ad68b98d02:/include/wx/control.h diff --git a/include/wx/control.h b/include/wx/control.h index 79adf0144f..c50fe6c033 100644 --- a/include/wx/control.h +++ b/include/wx/control.h @@ -29,6 +29,9 @@ class WXDLLEXPORT wxControlBase : public wxWindow { public: +#ifdef __WXMAC_X__ + virtual ~wxControlBase() {} // Added min for Mac X +#endif // simulates the event of given type (i.e. wxButton::Command() is just as // if the button was clicked) virtual void Command(wxCommandEvent &event); @@ -46,6 +49,9 @@ protected: // inherit colour and font settings from the parent window void InheritAttributes(); + + // initialize the common fields of wxCommandEvent + void InitCommandEvent(wxCommandEvent& event) const; }; // ----------------------------------------------------------------------------