Mercurial > hg > xemacs-beta
comparison src/frame-msw.c @ 380:8626e4521993 r21-2-5
Import from CVS: tag r21-2-5
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:07:10 +0200 |
parents | d883f39b8495 |
children | 064ab7fed2e0 |
comparison
equal
deleted
inserted
replaced
379:76b7d63099ad | 380:8626e4521993 |
---|---|
124 FRAME_MSWINDOWS_DATA(f)->button2_need_rbutton = 0; | 124 FRAME_MSWINDOWS_DATA(f)->button2_need_rbutton = 0; |
125 FRAME_MSWINDOWS_DATA(f)->button2_is_down = 0; | 125 FRAME_MSWINDOWS_DATA(f)->button2_is_down = 0; |
126 FRAME_MSWINDOWS_DATA(f)->ignore_next_lbutton_up = 0; | 126 FRAME_MSWINDOWS_DATA(f)->ignore_next_lbutton_up = 0; |
127 FRAME_MSWINDOWS_DATA(f)->ignore_next_rbutton_up = 0; | 127 FRAME_MSWINDOWS_DATA(f)->ignore_next_rbutton_up = 0; |
128 FRAME_MSWINDOWS_DATA(f)->sizing = 0; | 128 FRAME_MSWINDOWS_DATA(f)->sizing = 0; |
129 FRAME_MSWINDOWS_MENU_HASHTABLE(f) = Qnil; | 129 FRAME_MSWINDOWS_MENU_HASH_TABLE(f) = Qnil; |
130 #ifdef HAVE_TOOLBARS | 130 #ifdef HAVE_TOOLBARS |
131 FRAME_MSWINDOWS_TOOLBAR_HASHTABLE(f) = Fmake_hashtable (make_int (50), | 131 FRAME_MSWINDOWS_TOOLBAR_HASH_TABLE(f) = Fmake_hash_table (make_int (50), |
132 Qequal); | 132 Qequal); |
133 #endif | 133 #endif |
134 | 134 |
135 /* Will initialize these in WM_SIZE handler. We cannot do it now, | 135 /* Will initialize these in WM_SIZE handler. We cannot do it now, |
136 because we do not know what is CW_USEDEFAULT height and width */ | 136 because we do not know what is CW_USEDEFAULT height and width */ |
232 { | 232 { |
233 /* Windows, unlike X, is very synchronous. After the initial | 233 /* Windows, unlike X, is very synchronous. After the initial |
234 frame is created, it will never be displayed, except for | 234 frame is created, it will never be displayed, except for |
235 hollow border, unless we start pumping messages. Load progress | 235 hollow border, unless we start pumping messages. Load progress |
236 messages show in the bottom of the hollow frame, which is ugly. | 236 messages show in the bottom of the hollow frame, which is ugly. |
237 We redipsplay the initial frame here, so modeline and root window | 237 We redisplay the initial frame here, so modeline and root window |
238 backgorund show. | 238 background show. |
239 */ | 239 */ |
240 if (first_on_console) | 240 if (first_on_console) |
241 redisplay (); | 241 redisplay (); |
242 } | 242 } |
243 | 243 |
244 static void | 244 static void |
245 mswindows_mark_frame (struct frame *f, void (*markobj) (Lisp_Object)) | 245 mswindows_mark_frame (struct frame *f, void (*markobj) (Lisp_Object)) |
246 { | 246 { |
247 ((markobj) (FRAME_MSWINDOWS_MENU_HASHTABLE (f))); | 247 markobj (FRAME_MSWINDOWS_MENU_HASH_TABLE (f)); |
248 #ifdef HAVE_TOOLBARS | 248 #ifdef HAVE_TOOLBARS |
249 ((markobj) (FRAME_MSWINDOWS_TOOLBAR_HASHTABLE (f))); | 249 markobj (FRAME_MSWINDOWS_TOOLBAR_HASH_TABLE (f)); |
250 #endif | 250 #endif |
251 } | 251 } |
252 | 252 |
253 static void | 253 static void |
254 mswindows_focus_on_frame (struct frame *f) | 254 mswindows_focus_on_frame (struct frame *f) |
320 mswindows_frame_totally_visible_p (struct frame *f) | 320 mswindows_frame_totally_visible_p (struct frame *f) |
321 { | 321 { |
322 RECT rc_me, rc_other, rc_temp; | 322 RECT rc_me, rc_other, rc_temp; |
323 HWND hwnd = FRAME_MSWINDOWS_HANDLE(f); | 323 HWND hwnd = FRAME_MSWINDOWS_HANDLE(f); |
324 | 324 |
325 /* We test against not a whole window rectangle, only agaist its | 325 /* We test against not a whole window rectangle, only against its |
326 client part. So, if non-client are is covered and client area is | 326 client part. So, if non-client are is covered and client area is |
327 not, we return true. */ | 327 not, we return true. */ |
328 GetClientRect (hwnd, &rc_me); | 328 GetClientRect (hwnd, &rc_me); |
329 MapWindowPoints (hwnd, HWND_DESKTOP, (LPPOINT)&rc_me, 2); | 329 MapWindowPoints (hwnd, HWND_DESKTOP, (LPPOINT)&rc_me, 2); |
330 | 330 |