Changeset 3935
- Timestamp:
- 10/29/05 02:52:19 (3 years ago)
- Files:
-
- trunk/src/ChangeLog.Meadow (modified) (1 diff)
- trunk/src/mw32fns.c (modified) (2 diffs)
- trunk/src/mw32term.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ChangeLog.Meadow
r3931 r3935 1 2005-10-28 Kyotaro HORIGUCHI <horiguti@meadowy.org> 2 3 * mw32term.c (mw32-get-window-position): New lisp function. 4 (mw32_update_frame_alpha): Cast the parameter to suppress the 5 warning. 6 7 * mw32fns.c (mw32m_create_frame_window): Prevent the title bar 8 from overlapping with the task bar at the top of the screen on 9 creating frame. 10 (mw32_WndProc<WM_EMACS_UPDATE_ALPHA>): Cast the parameter to 11 suppress the warning. 12 1 13 2005-10-26 Kyotaro HORIGUCHI <horiguti@meadowy.org> 2 14 trunk/src/mw32fns.c
r3931 r3935 1503 1503 { 1504 1504 HWND hwnd; 1505 RECT rc; 1506 1507 /* Prevent the title bar from overlapping with the task bar at the 1508 top of the screen on creating frame. */ 1509 hwnd = FindWindow (TEXT ("Shell_TrayWnd"), NULL); 1510 if (hwnd 1511 && GetWindowRect (hwnd, &rc) && rc.top <= 0 && rc.bottom > f->top_pos) 1512 f->top_pos = rc.bottom; 1505 1513 1506 1514 hwnd = CreateWindowEx (f->output_data.mw32->dwStyleEx, … … 2642 2650 case WM_EMACS_UPDATE_ALPHA: 2643 2651 { 2644 mw32_update_frame_alpha ( wParam);2652 mw32_update_frame_alpha ((struct frame *)wParam); 2645 2653 break; 2646 2654 } trunk/src/mw32term.c
r3931 r3935 714 714 { 715 715 POST_INFORM_MESSAGE (FRAME_MW32_WINDOW (f), 716 WM_EMACS_UPDATE_ALPHA, f, 0);716 WM_EMACS_UPDATE_ALPHA, (WPARAM)f, 0); 717 717 return; 718 718 } … … 3597 3597 } 3598 3598 3599 DEFUN ("mw32-get-window-position", Fmw32_get_window_position, 3600 Smw32_get_window_position, 0, 2, 0, 3601 doc: /* Get the window position in screen coordinates. 3602 CLASS-NAME is the window class name and WINDOW-NAME is the window's title. 3603 Returns the dimensions as (LEFT TOP RIGHT BOTTOM) in screen coordinates, 3604 or nil if specified window is not found, or failed to get the position. */) 3605 (class_name, window_name) 3606 { 3607 HWND hwnd; 3608 RECT rc; 3609 char *classname = NULL; 3610 char *windowname = NULL; 3611 3612 if (STRINGP (class_name)) 3613 classname = SDATA (class_name); 3614 3615 if (STRINGP (window_name)) 3616 windowname = SDATA (window_name); 3617 3618 hwnd = FindWindow (classname, windowname); 3619 if (hwnd == NULL) return Qnil; 3620 3621 if (! GetWindowRect (hwnd, &rc)) return Qnil; 3622 3623 return Fcons (make_number (rc.left), 3624 Fcons (make_number (rc.top), 3625 Fcons (make_number (rc.right), 3626 Fcons (make_number (rc.bottom), 3627 Qnil)))); 3628 } 3629 3630 3599 3631 DEFUN ("mw32-get-scroll-bar-info", Fmw32_get_scroll_bar_info, 3600 3632 Smw32_get_scroll_bar_info, 0, 1, 0, … … 6836 6868 mw32_rbutton_to_emacs_button = 1; 6837 6869 6870 defsubr (&Smw32_get_window_position); 6838 6871 defsubr (&Smw32_get_scroll_bar_info); 6839 6872 defsubr (&Sw32_get_system_metrics);
