From 660b1906866eacdfc14f4309476f76021e94ccc8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 1 May 2003 20:41:59 +0000 Subject: [PATCH] fixed spurious debug error message git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 5f357c1d73..24498607f2 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -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 -- 2.47.2