/[emacs]/emacs/src/w32fns.c
ViewVC logotype

Diff of /emacs/src/w32fns.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.173.2.16 by miles, Sat Sep 4 09:28:15 2004 UTC revision 1.173.2.17 by miles, Thu Sep 16 00:12:25 2004 UTC
# Line 260  typedef BOOL (WINAPI * TrackMouseEvent_P Line 260  typedef BOOL (WINAPI * TrackMouseEvent_P
260    
261  TrackMouseEvent_Proc track_mouse_event_fn = NULL;  TrackMouseEvent_Proc track_mouse_event_fn = NULL;
262  ClipboardSequence_Proc clipboard_sequence_fn = NULL;  ClipboardSequence_Proc clipboard_sequence_fn = NULL;
263    extern AppendMenuW_Proc unicode_append_menu;
264    
265  /* W95 mousewheel handler */  /* W95 mousewheel handler */
266  unsigned int msh_mousewheel = 0;  unsigned int msh_mousewheel = 0;
# Line 3457  w32_wnd_proc (hwnd, msg, wParam, lParam) Line 3458  w32_wnd_proc (hwnd, msg, wParam, lParam)
3458                pMis->itemHeight = GetSystemMetrics (SM_CYMENUSIZE);                pMis->itemHeight = GetSystemMetrics (SM_CYMENUSIZE);
3459                if (title)                if (title)
3460                  {                  {
3461                    GetTextExtentPoint32 (hdc, title, strlen (title), &size);                    if (unicode_append_menu)
3462                        GetTextExtentPoint32W (hdc, (WCHAR *) title,
3463                                               wcslen ((WCHAR *) title),
3464                                               &size);
3465                      else
3466                        GetTextExtentPoint32 (hdc, title, strlen (title), &size);
3467    
3468                    pMis->itemWidth = size.cx;                    pMis->itemWidth = size.cx;
3469                    if (pMis->itemHeight < size.cy)                    if (pMis->itemHeight < size.cy)
3470                      pMis->itemHeight = size.cy;                      pMis->itemHeight = size.cy;
# Line 3495  w32_wnd_proc (hwnd, msg, wParam, lParam) Line 3502  w32_wnd_proc (hwnd, msg, wParam, lParam)
3502                    menu_font = CreateFontIndirect (&menu_logfont);                    menu_font = CreateFontIndirect (&menu_logfont);
3503                    old_font = SelectObject (hdc, menu_font);                    old_font = SelectObject (hdc, menu_font);
3504    
3505                    /* Always draw title as if not selected.  */                    /* Always draw title as if not selected.  */
3506                    ExtTextOut (hdc,                    if (unicode_append_menu)
3507                                pDis->rcItem.left                      ExtTextOutW (hdc,
3508                                + GetSystemMetrics (SM_CXMENUCHECK),                                   pDis->rcItem.left
3509                                pDis->rcItem.top,                                   + GetSystemMetrics (SM_CXMENUCHECK),
3510                                ETO_OPAQUE, &pDis->rcItem,                                   pDis->rcItem.top,
3511                                title, strlen (title), NULL);                                   ETO_OPAQUE, &pDis->rcItem,
3512                                     (WCHAR *) title,
3513                                     wcslen ((WCHAR *) title), NULL);
3514                      else
3515                        ExtTextOut (hdc,
3516                                    pDis->rcItem.left
3517                                    + GetSystemMetrics (SM_CXMENUCHECK),
3518                                    pDis->rcItem.top,
3519                                    ETO_OPAQUE, &pDis->rcItem,
3520                                    title, strlen (title), NULL);
3521    
3522                    SelectObject (hdc, old_font);                    SelectObject (hdc, old_font);
3523                    DeleteObject (menu_font);                    DeleteObject (menu_font);

Legend:
Removed from v.1.173.2.16  
changed lines
  Added in v.1.173.2.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26