[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/w32fns.c
From: |
Jason Rumney |
Subject: |
[Emacs-diffs] Changes to emacs/src/w32fns.c |
Date: |
Sun, 06 Jul 2003 17:58:13 -0400 |
Index: emacs/src/w32fns.c
diff -c emacs/src/w32fns.c:1.218 emacs/src/w32fns.c:1.219
*** emacs/src/w32fns.c:1.218 Sun Jul 6 14:42:55 2003
--- emacs/src/w32fns.c Sun Jul 6 17:58:12 2003
***************
*** 257,267 ****
/* Window that is tracking the mouse. */
static HWND track_mouse_window;
! typedef BOOL (WINAPI * TrackMouseEvent_Proc) (
! IN OUT LPTRACKMOUSEEVENT lpEventTrack
! );
! TrackMouseEvent_Proc track_mouse_event_fn=NULL;
/* W95 mousewheel handler */
unsigned int msh_mousewheel = 0;
--- 257,267 ----
/* Window that is tracking the mouse. */
static HWND track_mouse_window;
! typedef BOOL (WINAPI * TrackMouseEvent_Proc)
! (IN OUT LPTRACKMOUSEEVENT lpEventTrack);
! TrackMouseEvent_Proc track_mouse_event_fn = NULL;
! ClipboardSequence_Proc clipboard_sequence_fn = NULL;
/* W95 mousewheel handler */
unsigned int msh_mousewheel = 0;
***************
*** 14483,14493 ****
void globals_of_w32fns ()
{
HMODULE user32_lib = GetModuleHandle ("user32.dll");
! /*
! TrackMouseEvent not available in all versions of Windows, so
must load
! it dynamically. Do it once, here, instead of every time it is
used.
*/
! track_mouse_event_fn = (TrackMouseEvent_Proc) GetProcAddress (user32_lib,
"TrackMouseEvent");
}
/* Initialize image types. Based on which libraries are available. */
--- 14483,14497 ----
void globals_of_w32fns ()
{
HMODULE user32_lib = GetModuleHandle ("user32.dll");
! /*
! TrackMouseEvent not available in all versions of Windows, so must load
! it dynamically. Do it once, here, instead of every time it is used.
*/
! track_mouse_event_fn = (TrackMouseEvent_Proc)
! GetProcAddress (user32_lib, "TrackMouseEvent");
! /* ditto for GetClipboardSequenceNumber. */
! clipboard_sequence_fn = (ClipboardSequence_Proc)
! GetProcAddress (user32_lib, "GetClipboardSequenceNumber");
}
/* Initialize image types. Based on which libraries are available. */