Fix handling of WM_LBUTTONDCLICK message for buttons with certain

styles.
This commit is contained in:
Rein Klazes 1999-07-31 11:10:52 +00:00 committed by Alexandre Julliard
parent 40c60b698c
commit dbb4ad8284
1 changed files with 11 additions and 2 deletions

View File

@ -136,11 +136,20 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
}
break;
case WM_LBUTTONDOWN:
case WM_LBUTTONDBLCLK:
SendMessageA( hWnd, BM_SETSTATE, TRUE, 0 );
if(wndPtr->dwStyle & BS_NOTIFY ||
style==BS_RADIOBUTTON ||
style==BS_USERBUTTON ||
style==BS_OWNERDRAW){
SendMessageA( GetParent(hWnd), WM_COMMAND,
MAKEWPARAM( wndPtr->wIDmenu, BN_DOUBLECLICKED ), hWnd);
break;
}
/* fall through */
case WM_LBUTTONDOWN:
SetCapture( hWnd );
SetFocus( hWnd );
SendMessageA( hWnd, BM_SETSTATE, TRUE, 0 );
break;
case WM_LBUTTONUP: