From f3491aa93553407a49bb5b6d189ba225b3dc9b83 Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Tue, 16 Aug 2005 15:57:02 +0000 Subject: [PATCH] Change CB_GETCOMBOBOX to return STATE_SYSTEM_PRESSED in COMBOBOXINFO.stateButton when really the button is pressed, not when the combo is dropped down. --- dlls/user/combo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user/combo.c b/dlls/user/combo.c index e2781a70a2e..4ab46854864 100644 --- a/dlls/user/combo.c +++ b/dlls/user/combo.c @@ -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;