Fixed fake WM_LBUTTONUP message.

This commit is contained in:
Francis Beaudet 1999-07-18 15:36:08 +00:00 committed by Alexandre Julliard
parent d736ef4b1d
commit ba296e3898
1 changed files with 6 additions and 6 deletions

View File

@ -1163,16 +1163,16 @@ static void CBRollUp( LPHEADCOMBO lphc, BOOL ok, BOOL bButton )
TRACE("[%04x]: roll up [%i]\n", CB_HWND(lphc), (INT)ok );
if( lphc->wState & CBF_DROPPED )
{
RECT rect;
/*
* It seems useful to send the WM_LBUTTONUP with (-1,-1) when cancelling
* and with (0,0) (anywhere in the listbox) when Oking.
*/
SendMessageA( lphc->hWndLBox, WM_LBUTTONUP, 0, ok ? (LPARAM)0 : (LPARAM)(-1) );
if( lphc->wState & CBF_DROPPED )
{
RECT rect;
lphc->wState &= ~CBF_DROPPED;
ShowWindow( lphc->hWndLBox, SW_HIDE );