From eb729cd37a2b6e81fc88a7edbeb7624a5c87a486 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 2 Jan 2002 23:18:11 +0000 Subject: [PATCH] added wxRTII macros to wxPopupWindow under MSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/popupwin.h | 2 ++ src/common/popupcmn.cpp | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/include/wx/msw/popupwin.h b/include/wx/msw/popupwin.h index 297c0e7991..239ee04212 100644 --- a/include/wx/msw/popupwin.h +++ b/include/wx/msw/popupwin.h @@ -42,6 +42,8 @@ protected: GetParent()->ClientToScreen(x, y); } + + DECLARE_DYNAMIC_CLASS(wxPopupWindow) }; #endif // _WX_MSW_POPUPWIN_H_ diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index 581d20333d..55dcc2daa9 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -40,6 +40,12 @@ #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 +// probably could do it for all ports here just as well +#ifdef __WXMSW__ + IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow) +#endif // __WXMSW__ + // ---------------------------------------------------------------------------- // private classes // ---------------------------------------------------------------------------- @@ -354,3 +360,4 @@ void wxPopupFocusHandler::OnKillFocus(wxFocusEvent& event) } #endif // wxUSE_POPUPWIN + -- 2.45.2