X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..09ff2ee1632c8c484134da2a31d0d5c4d0a4bef4:/src/msw/popupwin.cpp diff --git a/src/msw/popupwin.cpp b/src/msw/popupwin.cpp index aa340cdc9f..78a9a676bf 100644 --- a/src/msw/popupwin.cpp +++ b/src/msw/popupwin.cpp @@ -38,8 +38,6 @@ #include "wx/msw/private.h" // for GetDesktopWindow() -IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow) - // ============================================================================ // implementation // ============================================================================ @@ -50,7 +48,7 @@ bool wxPopupWindow::Create(wxWindow *parent, int flags) Hide(); return wxPopupWindowBase::Create(parent) && - wxWindow::Create(parent, -1, + wxWindow::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, flags | wxPOPUP_WINDOW); } @@ -100,7 +98,7 @@ WXHWND wxPopupWindow::MSWGetParent() const bool wxPopupWindow::Show(bool show) { if ( !wxWindowMSW::Show(show) ) - return FALSE; + return false; if ( show ) { @@ -111,7 +109,7 @@ bool wxPopupWindow::Show(bool show) } } - return TRUE; + return true; } #endif // #if wxUSE_POPUPWIN