bool wxDialog::EnableCloseButton(bool enable)
{
+#ifndef __WXMICROWIN__
// get system (a.k.a. window) menu
HMENU hmenu = ::GetSystemMenu(GetHwnd(), FALSE /* get it */);
if ( !hmenu )
if ( !::EnableMenuItem(hmenu, SC_CLOSE,
MF_BYCOMMAND | (enable ? MF_ENABLED : MF_GRAYED)) )
{
- wxLogLastError(_T("DeleteMenu(SC_CLOSE)"));
+ wxLogLastError(_T("EnableMenuItem(SC_CLOSE)"));
return FALSE;
}
{
wxLogLastError(_T("DrawMenuBar"));
}
-
+#endif
+
return TRUE;
}
processed = !Close();
break;
+#ifndef __WXMICROWIN__
case WM_SETCURSOR:
// we want to override the busy cursor for modal dialogs:
// typically, wxBeginBusyCursor() is called and then a modal dialog
rc = FALSE;
}
break;
+#endif
}
if ( !processed )