comparison src/w32fns.c @ 42918:9b06036a8c5e

(syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
author Jason Rumney <jasonr@gnu.org>
date Wed, 23 Jan 2002 21:52:41 +0000
parents 40d08b8571ec
children 20a21fb23284
comparison
equal deleted inserted replaced
42917:ec2db12c7670 42918:9b06036a8c5e
319 extern int w32_system_caret_height; 319 extern int w32_system_caret_height;
320 extern int w32_system_caret_x; 320 extern int w32_system_caret_x;
321 extern int w32_system_caret_y; 321 extern int w32_system_caret_y;
322 extern int w32_use_visible_system_caret; 322 extern int w32_use_visible_system_caret;
323 323
324 HWND w32_visible_system_caret_hwnd; 324 static HWND w32_visible_system_caret_hwnd;
325 325
326 326
327 /* Error if we are not connected to MS-Windows. */ 327 /* Error if we are not connected to MS-Windows. */
328 void 328 void
329 check_w32 () 329 check_w32 ()
4877 button_state = 0; 4877 button_state = 0;
4878 ReleaseCapture (); 4878 ReleaseCapture ();
4879 /* Relinquish the system caret. */ 4879 /* Relinquish the system caret. */
4880 if (w32_system_caret_hwnd) 4880 if (w32_system_caret_hwnd)
4881 { 4881 {
4882 w32_visible_system_caret_hwnd = NULL;
4883 w32_system_caret_hwnd = NULL;
4882 DestroyCaret (); 4884 DestroyCaret ();
4883 w32_system_caret_hwnd = NULL;
4884 w32_visible_system_caret_hwnd = NULL;
4885 } 4885 }
4886 case WM_MOVE: 4886 case WM_MOVE:
4887 case WM_SIZE: 4887 case WM_SIZE:
4888 case WM_COMMAND: 4888 case WM_COMMAND:
4889 command: 4889 command:
14464 14464
14465 /* TrackMouseEvent not available in all versions of Windows, so must load 14465 /* TrackMouseEvent not available in all versions of Windows, so must load
14466 it dynamically. Do it once, here, instead of every time it is used. */ 14466 it dynamically. Do it once, here, instead of every time it is used. */
14467 track_mouse_event_fn = GetProcAddress (user32_lib, "TrackMouseEvent"); 14467 track_mouse_event_fn = GetProcAddress (user32_lib, "TrackMouseEvent");
14468 track_mouse_window = NULL; 14468 track_mouse_window = NULL;
14469
14470 w32_visible_system_caret_hwnd = NULL;
14469 14471
14470 /* The section below is built by the lisp expression at the top of the file, 14472 /* The section below is built by the lisp expression at the top of the file,
14471 just above where these variables are declared. */ 14473 just above where these variables are declared. */
14472 /*&&& init symbols here &&&*/ 14474 /*&&& init symbols here &&&*/
14473 Qauto_raise = intern ("auto-raise"); 14475 Qauto_raise = intern ("auto-raise");