From 159960c0e711edd4b2fbba4b9e41e81333868d62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 8 Jan 2002 23:25:23 +0000 Subject: [PATCH] wxRTTI for wxPopupWindow in wxMGL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mgl/popupwin.h | 3 +++ src/common/popupcmn.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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__ -- 2.45.2