user32: Add support for WS_EX_RIGHT style.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
44d52f2b72
commit
535f1de80d
|
@ -844,6 +844,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
|
||||||
HFONT hFont;
|
HFONT hFont;
|
||||||
LONG state = get_button_state( hwnd );
|
LONG state = get_button_state( hwnd );
|
||||||
LONG style = GetWindowLongW( hwnd, GWL_STYLE );
|
LONG style = GetWindowLongW( hwnd, GWL_STYLE );
|
||||||
|
LONG ex_style = GetWindowLongW( hwnd, GWL_EXSTYLE );
|
||||||
HWND parent;
|
HWND parent;
|
||||||
HRGN hrgn;
|
HRGN hrgn;
|
||||||
|
|
||||||
|
@ -872,7 +873,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
|
||||||
(WPARAM)hDC, (LPARAM)hwnd );
|
(WPARAM)hDC, (LPARAM)hwnd );
|
||||||
hrgn = set_control_clipping( hDC, &client );
|
hrgn = set_control_clipping( hDC, &client );
|
||||||
|
|
||||||
if (style & BS_LEFTTEXT)
|
if (style & BS_LEFTTEXT || ex_style & WS_EX_RIGHT)
|
||||||
{
|
{
|
||||||
rtext.right -= checkBoxWidth + text_offset;
|
rtext.right -= checkBoxWidth + text_offset;
|
||||||
rbox.left = rbox.right - checkBoxWidth;
|
rbox.left = rbox.right - checkBoxWidth;
|
||||||
|
|
Loading…
Reference in New Issue