Commit f3491aa9 authored by Frank Richter's avatar Frank Richter Committed by Alexandre Julliard

Change CB_GETCOMBOBOX to return STATE_SYSTEM_PRESSED in

COMBOBOXINFO.stateButton when really the button is pressed, not when the combo is dropped down.
parent 43e93117
......@@ -1834,7 +1834,7 @@ static LRESULT COMBO_GetComboBoxInfo(LPHEADCOMBO lphc, COMBOBOXINFO *pcbi)
pcbi->rcItem = lphc->textRect;
pcbi->rcButton = lphc->buttonRect;
pcbi->stateButton = 0;
if (lphc->wState & CBF_DROPPED)
if (lphc->wState & CBF_BUTTONDOWN)
pcbi->stateButton |= STATE_SYSTEM_PRESSED;
if (IsRectEmpty(&lphc->buttonRect))
pcbi->stateButton |= STATE_SYSTEM_INVISIBLE;
......
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