X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01f242e264802fb8cd8c8491830e82b1d97dc79d..c232dfe592d5f766c33ef91ac38fda44b10b1236:/include/wx/power.h diff --git a/include/wx/power.h b/include/wx/power.h index 1b80a8c71c..f1a23b9fe2 100644 --- a/include/wx/power.h +++ b/include/wx/power.h @@ -66,14 +66,14 @@ public: private: bool m_veto; + + DECLARE_ABSTRACT_CLASS(wxPowerEvent) }; -BEGIN_DECLARE_EVENT_TYPES() - DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPENDING, 406) - DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPENDED, 407) - DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPEND_CANCEL, 408) - DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_POWER_RESUME, 444) -END_DECLARE_EVENT_TYPES() +extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_SUSPENDING; +extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_SUSPENDED; +extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_SUSPEND_CANCEL; +extern WXDLLIMPEXP_BASE const wxEventType wxEVT_POWER_RESUME; typedef void (wxEvtHandler::*wxPowerEventFunction)(wxPowerEvent&);