comparison src/w32term.c @ 64661:75130ff74ad2

(my_show_window, my_set_window_pos, my_set_focus, my_set_foreground_window, my_destroy_window): Make static.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 28 Jul 2005 09:45:10 +0000
parents a8fa7c632ee4
children a0d1312ede66 890cc78a5a24
comparison
equal deleted inserted replaced
64660:40f90cb18fb4 64661:75130ff74ad2
270 static void x_frame_rehighlight P_ ((struct w32_display_info *)); 270 static void x_frame_rehighlight P_ ((struct w32_display_info *));
271 static void x_draw_hollow_cursor P_ ((struct window *, struct glyph_row *)); 271 static void x_draw_hollow_cursor P_ ((struct window *, struct glyph_row *));
272 static void x_draw_bar_cursor P_ ((struct window *, struct glyph_row *, int, 272 static void x_draw_bar_cursor P_ ((struct window *, struct glyph_row *, int,
273 enum text_cursor_kinds)); 273 enum text_cursor_kinds));
274 static void w32_clip_to_row P_ ((struct window *, struct glyph_row *, int, HDC)); 274 static void w32_clip_to_row P_ ((struct window *, struct glyph_row *, int, HDC));
275 static BOOL my_show_window P_ ((struct frame *, HWND, int));
276 static void my_set_window_pos P_ ((HWND, HWND, int, int, int, int, UINT));
277 static void my_set_focus P_ ((struct frame *, HWND));
278 static void my_set_foreground_window P_ ((HWND));
279 static void my_destroy_window P_ ((struct frame *, HWND));
275 280
276 static Lisp_Object Qvendor_specific_keysyms; 281 static Lisp_Object Qvendor_specific_keysyms;
277 282
278 283
279 /*********************************************************************** 284 /***********************************************************************
3630 (LPARAM) bar); 3635 (LPARAM) bar);
3631 } 3636 }
3632 3637
3633 /*#define ATTACH_THREADS*/ 3638 /*#define ATTACH_THREADS*/
3634 3639
3635 BOOL 3640 static BOOL
3636 my_show_window (FRAME_PTR f, HWND hwnd, int how) 3641 my_show_window (FRAME_PTR f, HWND hwnd, int how)
3637 { 3642 {
3638 #ifndef ATTACH_THREADS 3643 #ifndef ATTACH_THREADS
3639 return SendMessage (FRAME_W32_WINDOW (f), WM_EMACS_SHOWWINDOW, 3644 return SendMessage (FRAME_W32_WINDOW (f), WM_EMACS_SHOWWINDOW,
3640 (WPARAM) hwnd, (LPARAM) how); 3645 (WPARAM) hwnd, (LPARAM) how);
3641 #else 3646 #else
3642 return ShowWindow (hwnd, how); 3647 return ShowWindow (hwnd, how);
3643 #endif 3648 #endif
3644 } 3649 }
3645 3650
3646 void 3651 static void
3647 my_set_window_pos (HWND hwnd, HWND hwndAfter, 3652 my_set_window_pos (HWND hwnd, HWND hwndAfter,
3648 int x, int y, int cx, int cy, UINT flags) 3653 int x, int y, int cx, int cy, UINT flags)
3649 { 3654 {
3650 #ifndef ATTACH_THREADS 3655 #ifndef ATTACH_THREADS
3651 WINDOWPOS pos; 3656 WINDOWPOS pos;
3659 #else 3664 #else
3660 SetWindowPos (hwnd, hwndAfter, x, y, cx, cy, flags); 3665 SetWindowPos (hwnd, hwndAfter, x, y, cx, cy, flags);
3661 #endif 3666 #endif
3662 } 3667 }
3663 3668
3664 void 3669 static void
3665 my_set_focus (f, hwnd) 3670 my_set_focus (f, hwnd)
3666 struct frame * f; 3671 struct frame * f;
3667 HWND hwnd; 3672 HWND hwnd;
3668 { 3673 {
3669 SendMessage (FRAME_W32_WINDOW (f), WM_EMACS_SETFOCUS, 3674 SendMessage (FRAME_W32_WINDOW (f), WM_EMACS_SETFOCUS,
3670 (WPARAM) hwnd, 0); 3675 (WPARAM) hwnd, 0);
3671 } 3676 }
3672 3677
3673 void 3678 static void
3674 my_set_foreground_window (hwnd) 3679 my_set_foreground_window (hwnd)
3675 HWND hwnd; 3680 HWND hwnd;
3676 { 3681 {
3677 SendMessage (hwnd, WM_EMACS_SETFOREGROUND, (WPARAM) hwnd, 0); 3682 SendMessage (hwnd, WM_EMACS_SETFOREGROUND, (WPARAM) hwnd, 0);
3678 } 3683 }
3679 3684
3680 void 3685
3686 static void
3681 my_destroy_window (f, hwnd) 3687 my_destroy_window (f, hwnd)
3682 struct frame * f; 3688 struct frame * f;
3683 HWND hwnd; 3689 HWND hwnd;
3684 { 3690 {
3685 SendMessage (FRAME_W32_WINDOW (f), WM_EMACS_DESTROYWINDOW, 3691 SendMessage (FRAME_W32_WINDOW (f), WM_EMACS_DESTROYWINDOW,