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;
}