X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25b1b442d63f3ff7ca4d007843b2d02f9137f801..2739d4f0528b324700973169b67750107568bf12:/src/msw/popupwin.cpp diff --git a/src/msw/popupwin.cpp b/src/msw/popupwin.cpp index 6cddce9ae3..eb811168db 100644 --- a/src/msw/popupwin.cpp +++ b/src/msw/popupwin.cpp @@ -89,17 +89,13 @@ WXHWND wxPopupWindow::MSWGetParent() const bool wxPopupWindow::Show(bool show) { - if ( !wxWindowBase::Show(show) ) + if ( !wxWindowMSW::Show(show) ) return FALSE; - HWND hWnd = GetHwnd(); - int cshow = show ? SW_SHOW : SW_HIDE; - ::ShowWindow(hWnd, cshow); - if ( show ) { // raise to top of z order - if (!::SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE)) + if (!::SetWindowPos(GetHwnd(), HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE)) { wxLogLastError(_T("SetWindowPos")); }