]> git.saurik.com Git - wxWidgets.git/commitdiff
Eliminated some code.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 17 Jun 2003 09:52:26 +0000 (09:52 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 17 Jun 2003 09:52:26 +0000 (09:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/popupwin.cpp

index 6cddce9ae3b565234e353b67e143068bc337d14e..eb811168db18a0d2824a7d4c08915619d986e644 100644 (file)
@@ -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"));
         }