Author: jimtabor
Date: Thu Sep 12 02:26:36 2013
New Revision: 60054
URL:
http://svn.reactos.org/svn/reactos?rev=60054&view=rev
Log:
Attempt to fix CORE-6024
Modified:
trunk/reactos/win32ss/user/user32/controls/button.c
Modified: trunk/reactos/win32ss/user/user32/controls/button.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/contro…
==============================================================================
--- trunk/reactos/win32ss/user/user32/controls/button.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/controls/button.c [iso-8859-1] Thu Sep 12 02:26:36
2013
@@ -79,6 +79,7 @@
#define BUTTON_BTNPRESSED 0x40
#define BUTTON_UNKNOWN2 0x20
#define BUTTON_UNKNOWN3 0x10
+#define BUTTON_BMCLICK 0x100 // ReactOS Need to up to wine!
#define BUTTON_NOTIFY_PARENT(hWnd, code) \
do { /* Notify parent which has created this button control */ \
@@ -517,8 +518,20 @@
break;
case BM_CLICK:
+ //// ReactOS
+ state = get_button_state( hWnd );
+ if (state & BUTTON_BMCLICK)
+ break;
+ set_button_state( hWnd, state | BUTTON_BMCLICK ); // Tracked in
STATE_GWL_OFFSET.
+ ////
SendMessageW( hWnd, WM_LBUTTONDOWN, 0, 0 );
SendMessageW( hWnd, WM_LBUTTONUP, 0, 0 );
+ ////
+ state = get_button_state( hWnd );
+ if (!(state & BUTTON_BMCLICK)) break;
+ state &= ~BUTTON_BMCLICK;
+ set_button_state( hWnd, state );
+ ////
break;
case BM_SETIMAGE: