comparison src/event-msw.c @ 388:aabb7f5b1c81 r21-2-9

Import from CVS: tag r21-2-9
author cvs
date Mon, 13 Aug 2007 11:09:42 +0200
parents bbff43aa5eb7
children 1f50e6fe4f3f
comparison
equal deleted inserted replaced
387:f892a9d0bb8d 388:aabb7f5b1c81
1670 else 1670 else
1671 { 1671 {
1672 int quit_ch = CONSOLE_QUIT_CHAR (XCONSOLE (mswindows_find_console (hwnd))); 1672 int quit_ch = CONSOLE_QUIT_CHAR (XCONSOLE (mswindows_find_console (hwnd)));
1673 BYTE keymap_orig[256]; 1673 BYTE keymap_orig[256];
1674 POINT pnt = { LOWORD (GetMessagePos()), HIWORD (GetMessagePos()) }; 1674 POINT pnt = { LOWORD (GetMessagePos()), HIWORD (GetMessagePos()) };
1675 MSG msg = { hwnd, message, wParam, lParam, GetMessageTime(), pnt }; 1675 MSG msg;
1676
1677 msg.hwnd = hwnd;
1678 msg.message = message;
1679 msg.wParam = wParam;
1680 msg.lParam = lParam;
1681 msg.time = GetMessageTime();
1682 msg.pt = pnt;
1676 1683
1677 /* GetKeyboardState() does not work as documented on Win95. We have 1684 /* GetKeyboardState() does not work as documented on Win95. We have
1678 * to loosely track Left and Right modifiers on behalf of the OS, 1685 * to loosely track Left and Right modifiers on behalf of the OS,
1679 * without screwing up Windows NT which tracks them properly. */ 1686 * without screwing up Windows NT which tracks them properly. */
1680 if (wParam == VK_CONTROL) 1687 if (wParam == VK_CONTROL)
2155 case EN_CHANGE: 2162 case EN_CHANGE:
2156 case CBN_EDITCHANGE: 2163 case CBN_EDITCHANGE:
2157 case CBN_SELCHANGE: 2164 case CBN_SELCHANGE:
2158 if (!NILP (mswindows_handle_gui_wm_command (frame, cid, id))) 2165 if (!NILP (mswindows_handle_gui_wm_command (frame, cid, id)))
2159 return 0; 2166 return 0;
2160 default: /* do nothing */
2161 } 2167 }
2162 /* menubars always must come last since the hashtables do not 2168 /* menubars always must come last since the hashtables do not
2163 always exist*/ 2169 always exist*/
2164 #ifdef HAVE_MENUBARS 2170 #ifdef HAVE_MENUBARS
2165 if (!NILP (mswindows_handle_wm_command (frame, id))) 2171 if (!NILP (mswindows_handle_wm_command (frame, id)))