428
|
1 /* scrollbar implementation -- mswindows interface.
|
|
2 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois.
|
|
3 Copyright (C) 1994 Amdahl Corporation.
|
|
4 Copyright (C) 1995 Sun Microsystems, Inc.
|
|
5 Copyright (C) 1995 Darrell Kindred <dkindred+@cmu.edu>.
|
664
|
6 Copyright (C) 2001 Ben Wing.
|
428
|
7
|
|
8 This file is part of XEmacs.
|
|
9
|
|
10 XEmacs is free software; you can redistribute it and/or modify it
|
|
11 under the terms of the GNU General Public License as published by the
|
|
12 Free Software Foundation; either version 2, or (at your option) any
|
|
13 later version.
|
|
14
|
|
15 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
18 for more details.
|
|
19
|
|
20 You should have received a copy of the GNU General Public License
|
|
21 along with XEmacs; see the file COPYING. If not, write to
|
|
22 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
23 Boston, MA 02111-1307, USA. */
|
|
24
|
|
25 /* Synched up with: Not in FSF. */
|
|
26
|
|
27 #include <config.h>
|
|
28 #include "lisp.h"
|
|
29
|
|
30 #include "console-msw.h"
|
617
|
31 #include "elhash.h"
|
428
|
32 #include "events.h"
|
|
33 #include "frame.h"
|
617
|
34 #include "opaque.h"
|
428
|
35 #include "scrollbar-msw.h"
|
|
36 #include "scrollbar.h"
|
|
37 #include "specifier.h"
|
|
38 #include "window.h"
|
|
39
|
|
40 /* We use a similar sort of vertical scrollbar drag hack for mswindows
|
|
41 * scrollbars as is used for Motif or Lucid scrollbars under X.
|
|
42 * We do character-based instead of line-based scrolling, which can mean that
|
|
43 * without the hack it is impossible to drag to the end of a buffer. */
|
|
44 #define VERTICAL_SCROLLBAR_DRAG_HACK
|
|
45
|
|
46 static int vertical_drag_in_progress = 0;
|
|
47
|
617
|
48 /* As long as the HWND is around, the scrollbar instance must be GC-protected.
|
|
49 We have gotten crashes, apparently from trying to access a dead, freed
|
|
50 frame inside of a window mirror pointed to by the scrollbar structure. */
|
|
51 static Lisp_Object Vmswindows_scrollbar_instance_table;
|
|
52
|
428
|
53 static void
|
|
54 mswindows_create_scrollbar_instance (struct frame *f, int vertical,
|
|
55 struct scrollbar_instance *sb)
|
|
56 {
|
|
57 int orientation;
|
617
|
58 Lisp_Object ptr;
|
442
|
59
|
428
|
60 sb->scrollbar_data = xnew_and_zero (struct mswindows_scrollbar_data);
|
442
|
61
|
428
|
62 if (vertical)
|
|
63 orientation = SBS_VERT;
|
|
64 else
|
|
65 orientation = SBS_HORZ;
|
442
|
66
|
428
|
67 SCROLLBAR_MSW_HANDLE (sb) =
|
546
|
68 CreateWindowEx (0, "SCROLLBAR", 0, orientation|WS_CHILD,
|
|
69 CW_USEDEFAULT, CW_USEDEFAULT,
|
|
70 CW_USEDEFAULT, CW_USEDEFAULT,
|
|
71 FRAME_MSWINDOWS_HANDLE (f),
|
|
72 NULL, NULL, NULL);
|
|
73 SCROLLBAR_MSW_INFO (sb).cbSize = sizeof (SCROLLINFO);
|
428
|
74 SCROLLBAR_MSW_INFO (sb).fMask = SIF_ALL;
|
617
|
75 GetScrollInfo (SCROLLBAR_MSW_HANDLE (sb), SB_CTL,
|
|
76 &SCROLLBAR_MSW_INFO (sb));
|
|
77 ptr = make_opaque_ptr (SCROLLBAR_MSW_HANDLE (sb));
|
|
78 Fputhash (ptr, wrap_scrollbar_instance (sb),
|
|
79 Vmswindows_scrollbar_instance_table);
|
|
80 SetWindowLong (SCROLLBAR_MSW_HANDLE (sb), GWL_USERDATA,
|
|
81 (LONG) LISP_TO_VOID (ptr));
|
428
|
82 }
|
|
83
|
|
84 static void
|
|
85 mswindows_free_scrollbar_instance (struct scrollbar_instance *sb)
|
|
86 {
|
617
|
87 void *opaque =
|
|
88 (void *) GetWindowLong (SCROLLBAR_MSW_HANDLE (sb), GWL_USERDATA);
|
|
89 Lisp_Object ptr;
|
|
90
|
|
91 VOID_TO_LISP (ptr, opaque);
|
|
92 assert (OPAQUE_PTRP (ptr));
|
|
93 ptr = Fremhash (ptr, Vmswindows_scrollbar_instance_table);
|
|
94 assert (!NILP (ptr));
|
428
|
95 DestroyWindow (SCROLLBAR_MSW_HANDLE (sb));
|
442
|
96 if (sb->scrollbar_data)
|
428
|
97 xfree (sb->scrollbar_data);
|
|
98 }
|
|
99
|
|
100 static void
|
611
|
101 unshow_that_mofo (void *handle)
|
|
102 {
|
|
103 ShowScrollBar ((HWND) handle, SB_CTL, 0);
|
|
104 }
|
|
105
|
|
106 static void
|
428
|
107 mswindows_release_scrollbar_instance (struct scrollbar_instance *sb)
|
|
108 {
|
611
|
109 if (gc_in_progress)
|
|
110 /* #### way bogus! need to remove the offending call.
|
|
111 see mark_redisplay(). */
|
|
112 register_post_gc_action (unshow_that_mofo,
|
|
113 (void *) SCROLLBAR_MSW_HANDLE (sb));
|
|
114 else
|
|
115 ShowScrollBar (SCROLLBAR_MSW_HANDLE (sb), SB_CTL, 0);
|
428
|
116 SCROLLBAR_MSW_SIZE (sb) = 0;
|
|
117 }
|
|
118
|
|
119 #define UPDATE_POS_FIELD(field) \
|
|
120 if (new_##field >= 0 && SCROLLBAR_MSW_DATA (sb)->field != new_##field) { \
|
|
121 SCROLLBAR_MSW_DATA (sb)->field = new_##field; \
|
|
122 pos_changed = 1; \
|
|
123 }
|
|
124
|
|
125 static void
|
|
126 mswindows_update_scrollbar_instance_values (struct window *w,
|
|
127 struct scrollbar_instance *sb,
|
|
128 int new_line_increment,
|
|
129 int new_page_increment,
|
|
130 int new_minimum, int new_maximum,
|
|
131 int new_slider_size,
|
|
132 int new_slider_position,
|
|
133 int new_scrollbar_width,
|
|
134 int new_scrollbar_height,
|
|
135 int new_scrollbar_x,
|
|
136 int new_scrollbar_y)
|
|
137 {
|
|
138 int pos_changed = 0;
|
|
139 int vert = GetWindowLong (SCROLLBAR_MSW_HANDLE (sb), GWL_STYLE) & SBS_VERT;
|
|
140
|
|
141 #if 0
|
|
142 stderr_out ("[%d, %d], page = %d, pos = %d, inhibit = %d\n", new_minimum, new_maximum,
|
|
143 new_slider_size, new_slider_position,inhibit_slider_size_change);
|
|
144 #endif
|
|
145
|
|
146 /* These might be optimized, but since at least one will change at each
|
|
147 call, it's probably not worth it. */
|
|
148 SCROLLBAR_MSW_INFO (sb).nMin = new_minimum;
|
|
149 SCROLLBAR_MSW_INFO (sb).nMax = new_maximum;
|
|
150 SCROLLBAR_MSW_INFO (sb).nPage = new_slider_size + 1; /* +1 for DISABLENOSCROLL */
|
|
151 SCROLLBAR_MSW_INFO (sb).nPos = new_slider_position;
|
|
152 #ifndef VERTICAL_SCROLLBAR_DRAG_HACK
|
|
153 SCROLLBAR_MSW_INFO (sb).fMask = ((vert && vertical_drag_in_progress)
|
|
154 ? SIF_RANGE | SIF_POS
|
|
155 : SIF_ALL | SIF_DISABLENOSCROLL);
|
|
156 #else
|
|
157 SCROLLBAR_MSW_INFO (sb).fMask = SIF_ALL | SIF_DISABLENOSCROLL;
|
|
158
|
|
159 /* Ignore XEmacs' requests to update the thumb position and size; they don't
|
|
160 * bear any relation to reality because we're reporting made-up positions */
|
|
161 if (!(vert && vertical_drag_in_progress))
|
|
162 #endif
|
|
163 SetScrollInfo (SCROLLBAR_MSW_HANDLE (sb), SB_CTL, &SCROLLBAR_MSW_INFO (sb),
|
|
164 TRUE);
|
|
165
|
|
166 UPDATE_POS_FIELD (scrollbar_x);
|
|
167 UPDATE_POS_FIELD (scrollbar_y);
|
|
168 UPDATE_POS_FIELD (scrollbar_width);
|
|
169 UPDATE_POS_FIELD (scrollbar_height);
|
|
170
|
442
|
171 if (pos_changed)
|
428
|
172 {
|
617
|
173 MoveWindow (SCROLLBAR_MSW_HANDLE (sb),
|
|
174 new_scrollbar_x, new_scrollbar_y,
|
|
175 new_scrollbar_width, new_scrollbar_height,
|
|
176 TRUE);
|
428
|
177 }
|
|
178 }
|
|
179
|
|
180 static void
|
|
181 mswindows_update_scrollbar_instance_status (struct window *w,
|
|
182 int active, int size,
|
|
183 struct scrollbar_instance *sb)
|
|
184 {
|
|
185 if (SCROLLBAR_MSW_SIZE (sb) != size)
|
|
186 {
|
|
187 SCROLLBAR_MSW_SIZE (sb) = size;
|
|
188 ShowScrollBar (SCROLLBAR_MSW_HANDLE (sb), SB_CTL,
|
|
189 SCROLLBAR_MSW_SIZE (sb));
|
|
190 SCROLLBAR_MSW_INFO(sb).fMask |= SIF_DISABLENOSCROLL;
|
|
191 SetScrollInfo(SCROLLBAR_MSW_HANDLE (sb), SB_CTL, &SCROLLBAR_MSW_INFO (sb), TRUE);
|
|
192 }
|
|
193 }
|
|
194
|
|
195 void
|
|
196 mswindows_handle_scrollbar_event (HWND hwnd, int code, int pos)
|
|
197 {
|
|
198 struct frame *f;
|
|
199 Lisp_Object win, frame;
|
617
|
200 struct scrollbar_instance *sb = 0;
|
|
201 void *v;
|
428
|
202 SCROLLINFO scrollinfo;
|
|
203 int vert = GetWindowLong (hwnd, GWL_STYLE) & SBS_VERT;
|
|
204 int value;
|
|
205
|
617
|
206 v = (void *) GetWindowLong (hwnd, GWL_USERDATA);
|
|
207 if (!v)
|
546
|
208 {
|
617
|
209 /* apparently this can happen, as it was definitely necessary
|
|
210 to put the check in for sb below (VERTICAL_SCROLLBAR_DRAG_HACK) */
|
546
|
211 frame = mswindows_find_frame (hwnd);
|
|
212 f = XFRAME (frame);
|
|
213 win = FRAME_SELECTED_WINDOW (f);
|
|
214 }
|
|
215 else
|
|
216 {
|
617
|
217 Lisp_Object ptr;
|
|
218 VOID_TO_LISP (ptr, v);
|
|
219 assert (OPAQUE_PTRP (ptr));
|
|
220 ptr = Fgethash (ptr, Vmswindows_scrollbar_instance_table, Qnil);
|
|
221 sb = XSCROLLBAR_INSTANCE (ptr);
|
664
|
222 /* #### we're still hitting an abort here with 0 as the second
|
|
223 parameter, although only occasionally. It seems that sometimes we
|
|
224 receive events for scrollbars that don't exist anymore. I assume
|
|
225 it must happen like this: The user does something that causes a
|
|
226 scrollbar to disappear (e.g. Alt-TAB, causing recomputation of
|
|
227 everything in the new frame) and then immediately uses the mouse
|
|
228 wheel, generating scrollbar events. Both events get posted before
|
|
229 we have a chance to process them, and in processing the first, the
|
|
230 scrollbar mentioned in the second disappears. */
|
|
231 win = real_window (sb->mirror, 1);
|
|
232 if (NILP (win))
|
|
233 return;
|
617
|
234 frame = WINDOW_FRAME (XWINDOW (win));
|
546
|
235 f = XFRAME (frame);
|
|
236 }
|
428
|
237
|
617
|
238 /* SB_LINEDOWN == SB_CHARLEFT etc. This is the way they will
|
|
239 always be -- any Windows is binary compatible backward with
|
|
240 old programs. */
|
428
|
241
|
|
242 switch (code)
|
|
243 {
|
|
244 case SB_LINEDOWN:
|
|
245 mswindows_enqueue_misc_user_event
|
|
246 (frame, vert ? Qscrollbar_line_down : Qscrollbar_char_right, win);
|
|
247 break;
|
442
|
248
|
428
|
249 case SB_LINEUP:
|
|
250 mswindows_enqueue_misc_user_event
|
|
251 (frame, vert ? Qscrollbar_line_up : Qscrollbar_char_left, win);
|
|
252 break;
|
442
|
253
|
428
|
254 case SB_PAGEDOWN:
|
|
255 mswindows_enqueue_misc_user_event
|
|
256 (win, vert ? Qscrollbar_page_down : Qscrollbar_page_right,
|
|
257 vert ? Fcons (win, Qnil) : win);
|
|
258 break;
|
|
259
|
|
260 case SB_PAGEUP:
|
|
261 mswindows_enqueue_misc_user_event
|
|
262 (frame,
|
|
263 vert ? Qscrollbar_page_up : Qscrollbar_page_left,
|
|
264 vert ? Fcons (win, Qnil) : win);
|
|
265 break;
|
442
|
266
|
428
|
267 case SB_BOTTOM:
|
|
268 mswindows_enqueue_misc_user_event
|
|
269 (frame, vert ? Qscrollbar_to_bottom : Qscrollbar_to_right, win);
|
|
270 break;
|
|
271
|
|
272 case SB_TOP:
|
|
273 mswindows_enqueue_misc_user_event
|
|
274 (frame, vert ? Qscrollbar_to_top : Qscrollbar_to_left, win);
|
|
275 break;
|
|
276
|
|
277 case SB_THUMBTRACK:
|
|
278 case SB_THUMBPOSITION:
|
|
279 scrollinfo.cbSize = sizeof(SCROLLINFO);
|
|
280 scrollinfo.fMask = SIF_ALL;
|
|
281 GetScrollInfo (hwnd, SB_CTL, &scrollinfo);
|
|
282 vertical_drag_in_progress = vert;
|
|
283 #ifdef VERTICAL_SCROLLBAR_DRAG_HACK
|
|
284 if (vert && (scrollinfo.nTrackPos > scrollinfo.nPos))
|
|
285 /* new buffer position =
|
|
286 * buffer position at start of drag +
|
|
287 * ((text remaining in buffer at start of drag) *
|
|
288 * (amount that the thumb has been moved) /
|
|
289 * (space that remained past end of the thumb at start of drag)) */
|
|
290 value = (int)
|
|
291 (scrollinfo.nPos
|
|
292 + (((double)
|
|
293 (scrollinfo.nMax - scrollinfo.nPos)
|
|
294 * (scrollinfo.nTrackPos - scrollinfo.nPos))
|
|
295 / (scrollinfo.nMax - scrollinfo.nPage - scrollinfo.nPos)))
|
|
296 - 2; /* ensure that the last line doesn't disappear off screen */
|
|
297 else
|
|
298 #endif
|
|
299 value = scrollinfo.nTrackPos;
|
|
300 mswindows_enqueue_misc_user_event
|
|
301 (frame,
|
|
302 vert ? Qscrollbar_vertical_drag : Qscrollbar_horizontal_drag,
|
|
303 Fcons (win, make_int (value)));
|
|
304 break;
|
|
305
|
|
306 case SB_ENDSCROLL:
|
|
307 #ifdef VERTICAL_SCROLLBAR_DRAG_HACK
|
546
|
308 if (vertical_drag_in_progress && sb)
|
428
|
309 /* User has just dropped the thumb - finally update it */
|
|
310 SetScrollInfo (SCROLLBAR_MSW_HANDLE (sb), SB_CTL,
|
|
311 &SCROLLBAR_MSW_INFO (sb), TRUE);
|
|
312 #endif
|
|
313 vertical_drag_in_progress = 0;
|
|
314 break;
|
|
315 }
|
|
316 }
|
|
317
|
|
318 static int
|
464
|
319 can_scroll (struct scrollbar_instance* scrollbar)
|
428
|
320 {
|
|
321 return scrollbar != NULL
|
|
322 && IsWindowVisible (SCROLLBAR_MSW_HANDLE (scrollbar))
|
|
323 && IsWindowEnabled (SCROLLBAR_MSW_HANDLE (scrollbar));
|
|
324 }
|
|
325
|
|
326 int
|
464
|
327 mswindows_handle_mousewheel_event (Lisp_Object frame, int keys, int delta,
|
|
328 POINTS where)
|
428
|
329 {
|
442
|
330 int hasVertBar, hasHorzBar; /* Indicates presence of scroll bars */
|
428
|
331 unsigned wheelScrollLines = 0; /* Number of lines per wheel notch */
|
464
|
332 Lisp_Object win;
|
|
333 struct window_mirror *mirror;
|
|
334 POINT donde_esta;
|
428
|
335
|
464
|
336 donde_esta.x = where.x;
|
|
337 donde_esta.y = where.y;
|
|
338
|
|
339 ScreenToClient (FRAME_MSWINDOWS_HANDLE (XFRAME (frame)), &donde_esta);
|
|
340
|
|
341 /* Find the window to scroll */
|
|
342 {
|
|
343 int mene, _mene, tekel, upharsin;
|
665
|
344 Charbpos mens, sana;
|
464
|
345 Charcount in;
|
|
346 Lisp_Object corpore, sano;
|
|
347 struct window *needle_in_haystack;
|
|
348
|
|
349 pixel_to_glyph_translation (XFRAME (frame), donde_esta.x, donde_esta.y,
|
|
350 &mene, &_mene, &tekel, &upharsin,
|
|
351 &needle_in_haystack,
|
|
352 &mens, &sana, &in, &corpore, &sano);
|
|
353
|
|
354 if (needle_in_haystack)
|
|
355 {
|
|
356 XSETWINDOW (win, needle_in_haystack);
|
|
357 }
|
|
358 else
|
|
359 {
|
|
360 win = FRAME_SELECTED_WINDOW (XFRAME (frame));
|
|
361 needle_in_haystack = XWINDOW (win);
|
|
362 }
|
|
363
|
|
364 mirror = find_window_mirror (needle_in_haystack);
|
|
365 }
|
428
|
366
|
|
367 /* Check that there is something to scroll */
|
|
368 hasVertBar = can_scroll (mirror->scrollbar_vertical_instance);
|
|
369 hasHorzBar = can_scroll (mirror->scrollbar_horizontal_instance);
|
|
370 if (!hasVertBar && !hasHorzBar)
|
|
371 return FALSE;
|
|
372
|
|
373 /* No support for panning and zooming, so ignore */
|
|
374 if (keys & (MK_SHIFT | MK_CONTROL))
|
|
375 return FALSE;
|
|
376
|
|
377 /* Get the number of lines per wheel delta */
|
|
378 SystemParametersInfo (SPI_GETWHEELSCROLLLINES, 0, &wheelScrollLines, 0);
|
|
379
|
|
380 /* Calculate the amount to scroll */
|
|
381 if (wheelScrollLines == WHEEL_PAGESCROLL)
|
|
382 {
|
|
383 /* Scroll by a page */
|
|
384 Lisp_Object function;
|
|
385 if (hasVertBar)
|
|
386 function = delta > 0 ? Qscrollbar_page_up : Qscrollbar_page_down;
|
|
387 else
|
|
388 function = delta > 0 ? Qscrollbar_page_left : Qscrollbar_page_right;
|
|
389 mswindows_enqueue_misc_user_event (frame, function, Fcons (win, Qnil));
|
|
390 }
|
|
391 else /* Scroll by a number of lines */
|
|
392 {
|
|
393 /* Calc the number of lines to scroll */
|
|
394 int toScroll = MulDiv (delta, wheelScrollLines, WHEEL_DELTA);
|
|
395
|
|
396 /* Do the scroll */
|
|
397 Lisp_Object function;
|
|
398 if (hasVertBar)
|
|
399 function = delta > 0 ? Qscrollbar_line_up : Qscrollbar_line_down;
|
|
400 else
|
|
401 function = delta > 0 ? Qscrollbar_char_left : Qscrollbar_char_right;
|
|
402 if (toScroll < 0)
|
|
403 toScroll = -toScroll;
|
|
404 while (toScroll--)
|
|
405 mswindows_enqueue_misc_user_event (frame, function, win);
|
|
406 }
|
|
407
|
|
408 return TRUE;
|
|
409 }
|
|
410
|
|
411 #ifdef MEMORY_USAGE_STATS
|
|
412
|
|
413 static int
|
|
414 mswindows_compute_scrollbar_instance_usage (struct device *d,
|
|
415 struct scrollbar_instance *inst,
|
|
416 struct overhead_stats *ovstats)
|
|
417 {
|
|
418 int total = 0;
|
|
419
|
|
420 while (inst)
|
|
421 {
|
|
422 struct mswindows_scrollbar_data *data =
|
|
423 (struct mswindows_scrollbar_data *) inst->scrollbar_data;
|
|
424
|
|
425 total += malloced_storage_size (data, sizeof (*data), ovstats);
|
|
426 inst = inst->next;
|
|
427 }
|
|
428
|
|
429 return total;
|
|
430 }
|
|
431
|
|
432 #endif /* MEMORY_USAGE_STATS */
|
|
433
|
|
434 /************************************************************************/
|
|
435 /* Device-specific ghost specifiers initialization */
|
|
436 /************************************************************************/
|
|
437
|
617
|
438 DEFUN ("mswindows-init-scrollbar-metrics", Fmswindows_init_scrollbar_metrics,
|
|
439 1, 1, 0, /*
|
428
|
440 */
|
|
441 (locale))
|
|
442 {
|
|
443 if (DEVICEP (locale))
|
|
444 {
|
|
445 add_spec_to_ghost_specifier (Vscrollbar_width,
|
|
446 make_int (GetSystemMetrics (SM_CXVSCROLL)),
|
|
447 locale, Qmswindows, Qnil);
|
|
448 add_spec_to_ghost_specifier (Vscrollbar_height,
|
|
449 make_int (GetSystemMetrics (SM_CYHSCROLL)),
|
|
450 locale, Qmswindows, Qnil);
|
|
451 }
|
|
452 return Qnil;
|
|
453 }
|
|
454
|
|
455
|
|
456 /************************************************************************/
|
|
457 /* initialization */
|
|
458 /************************************************************************/
|
|
459
|
|
460 void
|
|
461 console_type_create_scrollbar_mswindows (void)
|
|
462 {
|
|
463 CONSOLE_HAS_METHOD (mswindows, create_scrollbar_instance);
|
|
464 CONSOLE_HAS_METHOD (mswindows, free_scrollbar_instance);
|
|
465 CONSOLE_HAS_METHOD (mswindows, release_scrollbar_instance);
|
|
466 CONSOLE_HAS_METHOD (mswindows, update_scrollbar_instance_values);
|
|
467 CONSOLE_HAS_METHOD (mswindows, update_scrollbar_instance_status);
|
|
468 /* CONSOLE_HAS_METHOD (mswindows, scrollbar_width_changed_in_frame); */
|
|
469 #ifdef MEMORY_USAGE_STATS
|
|
470 CONSOLE_HAS_METHOD (mswindows, compute_scrollbar_instance_usage);
|
|
471 #endif
|
|
472 }
|
|
473
|
|
474 void
|
617
|
475 syms_of_scrollbar_mswindows (void)
|
428
|
476 {
|
|
477 DEFSUBR (Fmswindows_init_scrollbar_metrics);
|
|
478 }
|
|
479
|
|
480 void
|
617
|
481 vars_of_scrollbar_mswindows (void)
|
428
|
482 {
|
|
483 Fprovide (intern ("mswindows-scrollbars"));
|
|
484 }
|
|
485
|
617
|
486 void
|
|
487 complex_vars_of_scrollbar_mswindows (void)
|
|
488 {
|
|
489 staticpro (&Vmswindows_scrollbar_instance_table);
|
|
490 Vmswindows_scrollbar_instance_table =
|
|
491 make_lisp_hash_table (100, HASH_TABLE_NON_WEAK, HASH_TABLE_EQ);
|
|
492 }
|