Author: jimtabor
Date: Mon Dec 19 16:36:12 2016
New Revision: 73469
URL:
http://svn.reactos.org/svn/reactos?rev=73469&view=rev
Log:
[User32]
- Patch by Andrey Gusev : Add support for WS_EX_RIGHT style.
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] Mon Dec 19 16:36:12
2016
@@ -1029,6 +1029,7 @@
HFONT hFont;
LONG state = get_button_state( hwnd );
LONG style = GetWindowLongPtrW( hwnd, GWL_STYLE );
+ LONG ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE );
HWND parent;
HRGN hrgn;
@@ -1061,7 +1062,7 @@
#endif
hrgn = set_control_clipping( hDC, &client );
- if (style & BS_LEFTTEXT)
+ if (style & BS_LEFTTEXT || ex_style & WS_EX_RIGHT)
{
/* magic +4 is what CTL3D expects */