]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxRTII macros to wxPopupWindow under MSW
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 2 Jan 2002 23:18:11 +0000 (23:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 2 Jan 2002 23:18:11 +0000 (23:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/popupwin.h
src/common/popupcmn.cpp

index 297c0e799164644f52938dac8bfe0232e5e307d9..239ee042124292cb64e98da4f0a5f22944d7fbea 100644 (file)
@@ -42,6 +42,8 @@ protected:
 
         GetParent()->ClientToScreen(x, y);
     }
+
+    DECLARE_DYNAMIC_CLASS(wxPopupWindow)
 };
 
 #endif // _WX_MSW_POPUPWIN_H_
index 581d20333db581b96999402b68cfac055e46bbb3..55dcc2daa9f0215d021722c014391d963fa3030a 100644 (file)
     #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
+