]> git.saurik.com Git - wxWidgets.git/commitdiff
WinCE doesn't have GetMessageTime
authorJulian Smart <julian@anthemion.co.uk>
Thu, 18 Sep 2003 13:14:34 +0000 (13:14 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 18 Sep 2003 13:14:34 +0000 (13:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index c1ff69c32ee74dd6494dae3125718fb7c2ef728f..f1cee3f773fee67c1a8c8ae72cadb8edf2a8776f 100644 (file)
@@ -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 )