From d1d2cd38c4b7f6702af747ab81e1b85afa5fefdf Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Thu, 18 Oct 2001 21:09:21 +0000 Subject: [PATCH] Added RTTI macros to wxSplashScreen. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/splash.h | 3 +++ src/generic/splash.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/include/wx/generic/splash.h b/include/wx/generic/splash.h index 961deb1ade..c5820ef924 100644 --- a/include/wx/generic/splash.h +++ b/include/wx/generic/splash.h @@ -43,6 +43,8 @@ class WXDLLEXPORT wxSplashScreenWindow; class WXDLLEXPORT wxSplashScreen: public wxFrame { public: + // for RTTI macros obly + wxSplashScreen() {}; wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSIMPLE_BORDER|wxFRAME_FLOAT_ON_PARENT); ~wxSplashScreen(); @@ -59,6 +61,7 @@ protected: int m_milliseconds; wxTimer m_timer; +DECLARE_DYNAMIC_CLASS(wxSplashScreen) DECLARE_EVENT_TABLE() }; diff --git a/src/generic/splash.cpp b/src/generic/splash.cpp index 2c0d403645..06d98a1e2d 100644 --- a/src/generic/splash.cpp +++ b/src/generic/splash.cpp @@ -34,6 +34,8 @@ #define wxSPLASH_TIMER_ID 9999 +IMPLEMENT_DYNAMIC_CLASS(wxSplashScreen, wxFrame); + BEGIN_EVENT_TABLE(wxSplashScreen, wxFrame) EVT_TIMER(wxSPLASH_TIMER_ID, wxSplashScreen::OnNotify) EVT_CLOSE(wxSplashScreen::OnCloseWindow) -- 2.45.2