X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0960f6d3be27a47c2f4ba14542af6902c7e9ac7..6b30ffedb18b86329fdc41ac1be27bc85bd758ff:/include/wx/power.h diff --git a/include/wx/power.h b/include/wx/power.h index ccd04343ac..bae6406482 100644 --- a/include/wx/power.h +++ b/include/wx/power.h @@ -73,16 +73,15 @@ private: DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxPowerEvent) }; -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; +wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPENDING, wxPowerEvent ); +wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPENDED, wxPowerEvent ); +wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_BASE, wxEVT_POWER_SUSPEND_CANCEL, wxPowerEvent ); +wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_BASE, wxEVT_POWER_RESUME, wxPowerEvent ); typedef void (wxEvtHandler::*wxPowerEventFunction)(wxPowerEvent&); #define wxPowerEventHandler(func) \ - (wxObjectEventFunction)(wxEventFunction) \ - wxStaticCastEvent(wxPowerEventFunction, &func) + wxEVENT_HANDLER_CAST(wxPowerEventFunction, func) #define EVT_POWER_SUSPENDING(func) \ wx__DECLARE_EVT0(wxEVT_POWER_SUSPENDING, wxPowerEventHandler(func))