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

Legend:
Removed from v.1.219.2.9  
changed lines
  Added in v.1.219.2.10

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