diff options
| author | Jason Rumney | 2003-07-06 21:58:12 +0000 |
|---|---|---|
| committer | Jason Rumney | 2003-07-06 21:58:12 +0000 |
| commit | ccc0fdaa3ebc3fc50e2a895318796dd1f20c4443 (patch) | |
| tree | de6f23b036e0cbc963390ac96e989dc4fcd2178a /src | |
| parent | 0390f991580edaee25bb443054bc2b4d6b41b33e (diff) | |
| download | emacs-ccc0fdaa3ebc3fc50e2a895318796dd1f20c4443.tar.gz emacs-ccc0fdaa3ebc3fc50e2a895318796dd1f20c4443.zip | |
(clipboard_sequence_fn): New variable.
(globals_of_w32fns): Initialize it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 0c42e3ddc19..e5ec00e8651 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -257,11 +257,11 @@ static unsigned mouse_move_timer = 0; | |||
| 257 | /* Window that is tracking the mouse. */ | 257 | /* Window that is tracking the mouse. */ |
| 258 | static HWND track_mouse_window; | 258 | static HWND track_mouse_window; |
| 259 | 259 | ||
| 260 | typedef BOOL (WINAPI * TrackMouseEvent_Proc) ( | 260 | typedef BOOL (WINAPI * TrackMouseEvent_Proc) |
| 261 | IN OUT LPTRACKMOUSEEVENT lpEventTrack | 261 | (IN OUT LPTRACKMOUSEEVENT lpEventTrack); |
| 262 | ); | ||
| 263 | 262 | ||
| 264 | TrackMouseEvent_Proc track_mouse_event_fn=NULL; | 263 | TrackMouseEvent_Proc track_mouse_event_fn = NULL; |
| 264 | ClipboardSequence_Proc clipboard_sequence_fn = NULL; | ||
| 265 | 265 | ||
| 266 | /* W95 mousewheel handler */ | 266 | /* W95 mousewheel handler */ |
| 267 | unsigned int msh_mousewheel = 0; | 267 | unsigned int msh_mousewheel = 0; |
| @@ -14483,11 +14483,15 @@ versions of Windows) characters. */); | |||
| 14483 | void globals_of_w32fns () | 14483 | void globals_of_w32fns () |
| 14484 | { | 14484 | { |
| 14485 | HMODULE user32_lib = GetModuleHandle ("user32.dll"); | 14485 | HMODULE user32_lib = GetModuleHandle ("user32.dll"); |
| 14486 | /* | 14486 | /* |
| 14487 | TrackMouseEvent not available in all versions of Windows, so must load | 14487 | 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. | 14488 | it dynamically. Do it once, here, instead of every time it is used. |
| 14489 | */ | 14489 | */ |
| 14490 | track_mouse_event_fn = (TrackMouseEvent_Proc) GetProcAddress (user32_lib, "TrackMouseEvent"); | 14490 | 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"); | ||
| 14491 | } | 14495 | } |
| 14492 | 14496 | ||
| 14493 | /* Initialize image types. Based on which libraries are available. */ | 14497 | /* Initialize image types. Based on which libraries are available. */ |