257 |
/* Window that is tracking the mouse. */ |
/* Window that is tracking the mouse. */ |
258 |
static HWND track_mouse_window; |
static HWND track_mouse_window; |
259 |
|
|
260 |
typedef BOOL (WINAPI * TrackMouseEvent_Proc) ( |
typedef BOOL (WINAPI * TrackMouseEvent_Proc) |
261 |
IN OUT LPTRACKMOUSEEVENT lpEventTrack |
(IN OUT LPTRACKMOUSEEVENT lpEventTrack); |
|
); |
|
262 |
|
|
263 |
TrackMouseEvent_Proc track_mouse_event_fn=NULL; |
TrackMouseEvent_Proc track_mouse_event_fn = NULL; |
264 |
|
ClipboardSequence_Proc clipboard_sequence_fn = NULL; |
265 |
|
|
266 |
/* W95 mousewheel handler */ |
/* W95 mousewheel handler */ |
267 |
unsigned int msh_mousewheel = 0; |
unsigned int msh_mousewheel = 0; |
14483 |
void globals_of_w32fns () |
void globals_of_w32fns () |
14484 |
{ |
{ |
14485 |
HMODULE user32_lib = GetModuleHandle ("user32.dll"); |
HMODULE user32_lib = GetModuleHandle ("user32.dll"); |
14486 |
/* |
/* |
14487 |
TrackMouseEvent not available in all versions of Windows, so must load |
TrackMouseEvent not available in all versions of Windows, so must load |
14488 |
it dynamically. Do it once, here, instead of every time it is used. |
it dynamically. Do it once, here, instead of every time it is used. |
14489 |
*/ |
*/ |
14490 |
track_mouse_event_fn = (TrackMouseEvent_Proc) GetProcAddress (user32_lib, "TrackMouseEvent"); |
track_mouse_event_fn = (TrackMouseEvent_Proc) |
14491 |
|
GetProcAddress (user32_lib, "TrackMouseEvent"); |
14492 |
|
/* ditto for GetClipboardSequenceNumber. */ |
14493 |
|
clipboard_sequence_fn = (ClipboardSequence_Proc) |
14494 |
|
GetProcAddress (user32_lib, "GetClipboardSequenceNumber"); |
14495 |
} |
} |
14496 |
|
|
14497 |
/* Initialize image types. Based on which libraries are available. */ |
/* Initialize image types. Based on which libraries are available. */ |