mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[User32]
- Patch by Andrey Gusev : Add support for WS_EX_RIGHT style. svn path=/trunk/; revision=73469
This commit is contained in:
parent
833738127d
commit
1140838644
|
@ -1029,6 +1029,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
|
|||
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 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
|
|||
#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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue