Fixed fake WM_LBUTTONUP message.
This commit is contained in:
parent
d736ef4b1d
commit
ba296e3898
|
@ -1163,16 +1163,16 @@ static void CBRollUp( LPHEADCOMBO lphc, BOOL ok, BOOL bButton )
|
||||||
|
|
||||||
TRACE("[%04x]: roll up [%i]\n", CB_HWND(lphc), (INT)ok );
|
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
|
* It seems useful to send the WM_LBUTTONUP with (-1,-1) when cancelling
|
||||||
* and with (0,0) (anywhere in the listbox) when Oking.
|
* and with (0,0) (anywhere in the listbox) when Oking.
|
||||||
*/
|
*/
|
||||||
SendMessageA( lphc->hWndLBox, WM_LBUTTONUP, 0, ok ? (LPARAM)0 : (LPARAM)(-1) );
|
SendMessageA( lphc->hWndLBox, WM_LBUTTONUP, 0, ok ? (LPARAM)0 : (LPARAM)(-1) );
|
||||||
|
|
||||||
if( lphc->wState & CBF_DROPPED )
|
|
||||||
{
|
|
||||||
RECT rect;
|
|
||||||
|
|
||||||
lphc->wState &= ~CBF_DROPPED;
|
lphc->wState &= ~CBF_DROPPED;
|
||||||
ShowWindow( lphc->hWndLBox, SW_HIDE );
|
ShowWindow( lphc->hWndLBox, SW_HIDE );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue