From 6d40d1b05f7f393197a565c1df7a8432d12fe006 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 12 Mar 1999 17:00:13 +0000 Subject: [PATCH] Changed the button state to "up" as soon as it is known that the selection has been cancelled, so the button is redrawn in the "up" state. --- controls/combo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/combo.c b/controls/combo.c index 5f8e1cd8bef..47fa9297251 100644 --- a/controls/combo.c +++ b/controls/combo.c @@ -1195,6 +1195,7 @@ static void COMBO_LButtonDown( LPHEADCOMBO lphc, LPARAM lParam ) { /* got a click to cancel selection */ + lphc->wState &= ~CBF_BUTTONDOWN; CBRollUp( lphc, TRUE, FALSE ); if( !IsWindow( hWnd ) ) return; @@ -1203,7 +1204,6 @@ static void COMBO_LButtonDown( LPHEADCOMBO lphc, LPARAM lParam ) lphc->wState &= ~CBF_CAPTURE; ReleaseCapture(); } - lphc->wState &= ~CBF_BUTTONDOWN; } else {