- case WM_COMMAND:
- {
- WXWORD id, cmd;
- WXHWND hwnd;
- UnpackCommand(wParam, lParam, &id, &hwnd, &cmd);
-
- (void)HandleCommand(id, cmd, hwnd);
-
- // even if the frame didn't process it, there is no need to try it
- // once again (i.e. call wxFrame::HandleCommand()) - we just did it,
- // so pretend we processed the message anyhow
- processed = true;
- }
-
- // always pass this message DefFrameProc(), otherwise MDI menu
- // commands (and sys commands - more surprisingly!) won't work
- MSWDefWindowProc(message, wParam, lParam);
- break;
-