X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd7ebf8b755c17112113bfb2b0744c08d13228cf..7a9dfa3c40f3324391759a27644880b5395a8ffc:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index c1ff69c32e..6ca8054528 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -2790,7 +2790,7 @@ long wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam //WPARAM dwFlags = (WPARAM) (DWORD) wParam; LPARAM dwObjId = (LPARAM) (DWORD) lParam; - if (dwObjId == OBJID_CLIENT && GetOrCreateAccessible()) + if (dwObjId == (LPARAM)OBJID_CLIENT && GetOrCreateAccessible()) { return LresultFromObject(IID_IAccessible, wParam, (IUnknown*) GetAccessible()->GetIAccessible()); } @@ -4223,7 +4223,10 @@ void wxWindowMSW::InitMouseEvent(wxMouseEvent& event, // so simply test for negative value. event.m_altDown = ::GetKeyState(VK_MENU) < 0; +#ifndef __WXWINCE__ event.SetTimestamp(::GetMessageTime()); +#endif + event.m_eventObject = this; event.SetId(GetId()); @@ -4421,7 +4424,9 @@ wxKeyEvent wxWindowMSW::CreateKeyEvent(wxEventType evType, event.m_keyCode = id; event.m_rawCode = (wxUint32) wParam; event.m_rawFlags = (wxUint32) lParam; +#ifndef __WXWINCE__ event.SetTimestamp(::GetMessageTime()); +#endif // translate the position to client coords POINT pt; @@ -5095,8 +5100,9 @@ wxKeyboardHook(int nCode, WORD wParam, DWORD lParam) event.m_keyCode = id; event.m_shiftDown = wxIsShiftDown(); event.m_controlDown = wxIsCtrlDown(); +#ifndef __WXWINCE__ event.SetTimestamp(::GetMessageTime()); - +#endif wxWindow *win = wxGetActiveWindow(); wxEvtHandler *handler; if ( win )