}
}
+void wxWindow::SetAcceleratorTable(const wxAcceleratorTable& accel)
+{
+ m_acceleratorTable = accel;
+}
+
+
// Push/pop event handler (i.e. allow a chain of event handlers
// be searched)
void wxWindow::PushEventHandler(wxEvtHandler *handler)
break;
}
+ case WM_MOVE:
+ {
+ wxMoveEvent event(wxPoint(LOWORD(lParam), HIWORD(lParam)),
+ m_windowId);
+ event.SetEventObject(this);
+ if ( !GetEventHandler()->ProcessEvent(event) )
+ Default();
+ }
+ break;
+
case WM_WINDOWPOSCHANGING:
{
- WINDOWPOS *pos = (WINDOWPOS *)lParam;
- MSWOnWindowPosChanging((void *)pos);
+ MSWOnWindowPosChanging((void *)lParam);
break;
}
return FALSE;
}
-bool wxWindow::MSWTranslateMessage(WXMSG* WXUNUSED(pMsg))
+bool wxWindow::MSWTranslateMessage(WXMSG* pMsg)
{
- return FALSE;
+ if (m_acceleratorTable.Ok() &&
+ ::TranslateAccelerator((HWND) GetHWND(), (HACCEL) m_acceleratorTable.GetHACCEL(), (MSG *)pMsg))
+ return TRUE;
+ else
+ return FALSE;
}
long wxWindow::MSWOnMDIActivate(long WXUNUSED(flag), WXHWND WXUNUSED(activate), WXHWND WXUNUSED(deactivate))