From: Václav Slavík Date: Tue, 8 Jan 2002 23:25:23 +0000 (+0000) Subject: wxRTTI for wxPopupWindow in wxMGL X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/159960c0e711edd4b2fbba4b9e41e81333868d62 wxRTTI for wxPopupWindow in wxMGL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/mgl/popupwin.h b/include/wx/mgl/popupwin.h index fd56a9b5cb..890265fb59 100644 --- a/include/wx/mgl/popupwin.h +++ b/include/wx/mgl/popupwin.h @@ -30,6 +30,9 @@ public: wxDefaultPosition, wxDefaultSize, (flags & wxBORDER_MASK) | wxPOPUP_WINDOW); } + +protected: + DECLARE_DYNAMIC_CLASS(wxPopupWindow) }; #endif // _WX_POPUPWIN_H_ diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index b06a532c7a..0da4939868 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -40,9 +40,9 @@ #include "wx/univ/renderer.h" #endif // __WXUNIVERSAL__ -// there is no src/msw/popupwin.cpp to put this in, so we do it here - BTW we +// there is no src/{msw,mgl}/popupwin.cpp to put this in, so we do it here - BTW we // probably could do it for all ports here just as well -#ifdef __WXMSW__ +#if defined(__WXMSW__) || defined(__WXMGL__) IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow) #endif // __WXMSW__