]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed spurious debug error message
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 May 2003 20:41:59 +0000 (20:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 1 May 2003 20:41:59 +0000 (20:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/toplevel.cpp

index 5f357c1d7335e8e5a4454ddef4be2e21bc570de1..24498607f2248ba88465d0bcf3480a1f69df83b5 100644 (file)
@@ -732,9 +732,9 @@ bool wxTopLevelWindowMSW::EnableCloseButton(bool enable)
     HMENU hmenu = ::GetSystemMenu(GetHwnd(), FALSE /* get it */);
     if ( !hmenu )
     {
-        wxLogLastError(_T("GetSystemMenu"));
-
-        return FALSE;
+        // no system menu at all -- ok if we want to remove the close button
+        // anyhow, but bad if we want to show it
+        return !enable;
     }
 
     // enabling/disabling the close item from it also automatically