mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Set the ODS_DISABLED bit when the item is grayed.
This commit is contained in:
parent
70c4fc4109
commit
3d60c63adf
1 changed files with 1 additions and 1 deletions
|
@ -1162,7 +1162,7 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
|
|||
dis.itemData = (DWORD)lpitem->dwItemData;
|
||||
dis.itemState = 0;
|
||||
if (lpitem->fState & MF_CHECKED) dis.itemState |= ODS_CHECKED;
|
||||
if (lpitem->fState & MF_GRAYED) dis.itemState |= ODS_GRAYED;
|
||||
if (lpitem->fState & MF_GRAYED) dis.itemState |= ODS_GRAYED|ODS_DISABLED;
|
||||
if (lpitem->fState & MF_HILITE) dis.itemState |= ODS_SELECTED;
|
||||
dis.itemAction = odaction; /* ODA_DRAWENTIRE | ODA_SELECT | ODA_FOCUS; */
|
||||
dis.hwndItem = (HWND)hmenu;
|
||||
|
|
Loading…
Reference in a new issue