Change CB_GETCOMBOBOX to return STATE_SYSTEM_PRESSED in
COMBOBOXINFO.stateButton when really the button is pressed, not when the combo is dropped down.
This commit is contained in:
parent
43e93117e3
commit
f3491aa935
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue