comparison src/event-msw.c @ 546:666d73d6ac56

[xemacs-hg @ 2001-05-20 01:17:07 by ben] fixes so MinGW compiles. console-msw.h, scrollbar-msw.c, event-msw.c: we might receive scrollbar events on windows without scrollbars (e.g. holding down and moving the wheel button). dired.c: win9x support. eval.c: doc comment about gcpro'ing in record_unwind_protect. frame-msw.c: typo. frame.c: avoid problems with errors during init_frame_3. process-nt.c: remove unused mswindows-quote-process-args. rec for 21.4. unexcw.c: use do/while. autoload.el: Oops, off by one argument. mouse.el: Add an argument to mouse-track so that hooks can be overridden. (let-binding doesn't work when the hooks have been made local.) modify mouse-track-run-hook accordingly, and fix mouse-track-default and mouse-track-insert to use the new functionality. printer.el: Oops, off by one paren.
author ben
date Sun, 20 May 2001 01:17:16 +0000
parents c69610198c35
children ed498ef2108b
comparison
equal deleted inserted replaced
545:9a775fb11bb7 546:666d73d6ac56
90 #define FAKE_MOD_QUIT_CRITICAL (1 << 21) 90 #define FAKE_MOD_QUIT_CRITICAL (1 << 21)
91 91
92 /* Timer ID used for button2 emulation */ 92 /* Timer ID used for button2 emulation */
93 #define BUTTON_2_TIMER_ID 1 93 #define BUTTON_2_TIMER_ID 1
94 94
95 static Lisp_Object mswindows_find_frame (HWND hwnd);
96 static Lisp_Object mswindows_find_console (HWND hwnd); 95 static Lisp_Object mswindows_find_console (HWND hwnd);
97 static Lisp_Object mswindows_key_to_emacs_keysym (int mswindows_key, int mods, 96 static Lisp_Object mswindows_key_to_emacs_keysym (int mswindows_key, int mods,
98 int extendedp); 97 int extendedp);
99 static int mswindows_modifier_state (BYTE* keymap, DWORD fwKeys, 98 static int mswindows_modifier_state (BYTE* keymap, DWORD fwKeys,
100 int has_AltGr); 99 int has_AltGr);
3234 } 3233 }
3235 3234
3236 /* 3235 /*
3237 * Find the frame that matches the supplied mswindows window handle 3236 * Find the frame that matches the supplied mswindows window handle
3238 */ 3237 */
3239 static Lisp_Object 3238 Lisp_Object
3240 mswindows_find_frame (HWND hwnd) 3239 mswindows_find_frame (HWND hwnd)
3241 { 3240 {
3242 LONG l = GetWindowLong (hwnd, XWL_FRAMEOBJ); 3241 LONG l = GetWindowLong (hwnd, XWL_FRAMEOBJ);
3243 Lisp_Object f; 3242 Lisp_Object f;
3244 if (l == 0) 3243 if (l == 0)