Commit c69a522e authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

Correct the test for the ODS_SELECTED bit in the WM_DRAWITEM message

handler.
parent 4c90416d
......@@ -823,7 +823,7 @@ LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
{
if (lpdi->CtlType == ODT_COMBOBOX)
{
if (lpdi->itemState ==ODS_SELECTED)
if (lpdi->itemState & ODS_SELECTED)
{
hBrush=GetSysColorBrush(COLOR_HIGHLIGHT);
oldText=SetTextColor(lpdi->hDC, GetSysColor(COLOR_HIGHLIGHTTEXT));
......@@ -898,7 +898,7 @@ LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
default:
return TRUE; /* this should never happen */
}
if (lpdi->itemState == ODS_SELECTED)
if (lpdi->itemState & ODS_SELECTED)
{
SetTextColor(lpdi->hDC, oldText);
SetBkColor(lpdi->hDC, oldBk);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment