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; |
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; |
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); |