properly handle clicks outside a checkbox

svn path=/trunk/; revision=16404
This commit is contained in:
Thomas Bluemel 2005-07-04 00:30:23 +00:00
parent 9d1991ed72
commit 7661ff0d5f

View file

@ -1593,7 +1593,7 @@ CheckListWndProc(IN HWND hwnd,
ChangeFocus = TRUE; ChangeFocus = TRUE;
} }
if (ChangeFocus && GetCapture() == NULL && if (InCheckBox && ChangeFocus && GetCapture() == NULL &&
(uMsg == WM_LBUTTONDOWN || uMsg == WM_LBUTTONDBLCLK)) (uMsg == WM_LBUTTONDOWN || uMsg == WM_LBUTTONDBLCLK))
{ {
infoPtr->FocusedPushed = TRUE; infoPtr->FocusedPushed = TRUE;