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 +