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:
Frank Richter 2005-08-16 15:57:02 +00:00 committed by Alexandre Julliard
parent 43e93117e3
commit f3491aa935
1 changed files with 1 additions and 1 deletions

View File

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