Commit ba296e38 authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard

Fixed fake WM_LBUTTONUP message.

parent d736ef4b
...@@ -1163,16 +1163,16 @@ static void CBRollUp( LPHEADCOMBO lphc, BOOL ok, BOOL bButton ) ...@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment