From: Julian Smart Date: Tue, 17 Jun 2003 09:52:26 +0000 (+0000) Subject: Eliminated some code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c649a6aba49b456a8e4b0a98e4da0e7cc44a1ad8 Eliminated some code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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")); }