X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..a721fd82b7ca8c97048453d4aaff559e8f741d69:/include/wx/dialup.h diff --git a/include/wx/dialup.h b/include/wx/dialup.h index 73819e1df8..85587ae57c 100644 --- a/include/wx/dialup.h +++ b/include/wx/dialup.h @@ -152,8 +152,10 @@ public: // wxDialUpManager events // ---------------------------------------------------------------------------- -extern WXDLLIMPEXP_CORE const wxEventType wxEVT_DIALUP_CONNECTED; -extern WXDLLIMPEXP_CORE const wxEventType wxEVT_DIALUP_DISCONNECTED; +class WXDLLIMPEXP_FWD_CORE wxDialUpEvent; + +wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_DIALUP_CONNECTED, wxDialUpEvent ) +wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_DIALUP_DISCONNECTED, wxDialUpEvent ) // the event class for the dialup events class WXDLLIMPEXP_CORE wxDialUpEvent : public wxEvent @@ -185,7 +187,7 @@ private: typedef void (wxEvtHandler::*wxDialUpEventFunction)(wxDialUpEvent&); #define wxDialUpEventHandler(func) \ - (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxDialUpEventFunction, &func) + wxEVENT_HANDLER_CAST(wxDialUpEventFunction, func) // macros to catch dialup events #define EVT_DIALUP_CONNECTED(func) \