removed HandleSysCommand() and don't generate duplicate events for frame maximization/iconization

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-05-08 10:05:33 +00:00
parent 57c1e03211
commit 824a614c4e
2 changed files with 0 additions and 22 deletions

View File

@ -297,7 +297,6 @@ public:
bool HandleActivate(int flag, bool minimized, WXHWND activate);
bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control);
bool HandleSysCommand(WXWPARAM wParam, WXLPARAM lParam);
bool HandleCtlColor(WXHBRUSH *hBrush,
WXHDC hdc,

View File

@ -2529,10 +2529,6 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
break;
#endif // __WXMICROWIN__
case WM_SYSCOMMAND:
processed = HandleSysCommand(wParam, lParam);
break;
case WM_COMMAND:
{
WORD id, cmd;
@ -4289,23 +4285,6 @@ bool wxWindowMSW::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
return false;
}
bool wxWindowMSW::HandleSysCommand(WXWPARAM wParam, WXLPARAM WXUNUSED(lParam))
{
#ifndef __WXWINCE__
// 4 bits are reserved
switch ( wParam & 0xFFFFFFF0 )
{
case SC_MAXIMIZE:
return HandleMaximize();
case SC_MINIMIZE:
return HandleMinimize();
}
#endif
return false;
}
// ---------------------------------------------------------------------------
// mouse events
// ---------------------------------------------------------------------------