From 293f3730407ea5065c31b6eb47dbaa551dda83ff Mon Sep 17 00:00:00 2001 From: sekelsenmat Date: Sun, 24 Oct 2010 09:14:54 +0000 Subject: [PATCH] Fixes wince button clicking see bug #17702 git-svn-id: trunk@27828 - --- lcl/interfaces/wince/wincecallback.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lcl/interfaces/wince/wincecallback.inc b/lcl/interfaces/wince/wincecallback.inc index a27a78a6bb..34b1c933e6 100644 --- a/lcl/interfaces/wince/wincecallback.inc +++ b/lcl/interfaces/wince/wincecallback.inc @@ -1187,12 +1187,12 @@ begin end // WM_COMMAND in the win32 interface to a button generates an OnClick event // But in Windows CE this generates two OnClick events when the key - // is pressed in a button. Therefore this behavior was disabled. - // See bug 17680 + // is pressed in a button. For this is required for button clicking. + // See bugs 17680 and 17702 else if lWinControl is TCustomButton then begin case Hi(WParam) of - BN_CLICKED: LMessage.Msg := LM_NULL;//LM_CLICKED; + BN_CLICKED: LMessage.Msg := LM_CLICKED; BN_KILLFOCUS: LMessage.Msg := LM_EXIT; end end