Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ccc0fdaa
Commit
ccc0fdaa
authored
Jul 06, 2003
by
Jason Rumney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(clipboard_sequence_fn): New variable.
(globals_of_w32fns): Initialize it.
parent
0390f991
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
src/w32fns.c
src/w32fns.c
+12
-8
No files found.
src/w32fns.c
View file @
ccc0fdaa
...
...
@@ -257,11 +257,11 @@ static unsigned mouse_move_timer = 0;
/* Window that is tracking the mouse. */
static HWND track_mouse_window;
typedef BOOL (WINAPI * TrackMouseEvent_Proc) (
IN OUT LPTRACKMOUSEEVENT lpEventTrack
);
typedef BOOL (WINAPI * TrackMouseEvent_Proc)
(IN OUT LPTRACKMOUSEEVENT lpEventTrack);
TrackMouseEvent_Proc track_mouse_event_fn=NULL;
TrackMouseEvent_Proc track_mouse_event_fn = NULL;
ClipboardSequence_Proc clipboard_sequence_fn = NULL;
/* W95 mousewheel handler */
unsigned int msh_mousewheel = 0;
...
...
@@ -14483,11 +14483,15 @@ versions of Windows) characters. */);
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.
/*
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");
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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment