]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialog.cpp
Inexplicable removal of wxRadioBox::MSWWindowProc reversed, so wxRadioBox
[wxWidgets.git] / src / msw / dialog.cpp
index 764e4518a1539b2c693c0ace02da65c99a61ab35..0ded488a510711f199ee29a208518f58901dae34 100644 (file)
@@ -474,7 +474,9 @@ bool wxDialog::Show(bool show)
         if (hWndParent)
           ::BringWindowToTop(hWndParent);
       }
-      ShowWindow((HWND) GetHWND(), SW_HIDE);
+
+      if ( m_hWnd )
+        ShowWindow((HWND) GetHWND(), SW_HIDE);
     }
   }
   return TRUE;