Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9e3ab87a
Commit
9e3ab87a
authored
Dec 19, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make sure to setup clipping before any painting is done.
parent
c316c1a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
button.c
dlls/user32/button.c
+3
-5
No files found.
dlls/user32/button.c
View file @
9e3ab87a
...
...
@@ -903,6 +903,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
if
(
!
hBrush
)
/* did the app forget to call defwindowproc ? */
hBrush
=
(
HBRUSH
)
DefWindowProcW
(
parent
,
WM_CTLCOLORSTATIC
,
(
WPARAM
)
hDC
,
(
LPARAM
)
hwnd
);
setup_clipping
(
hwnd
,
hDC
);
if
(
style
&
BS_LEFTTEXT
)
{
...
...
@@ -916,7 +917,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
rtext
.
left
+=
checkBoxWidth
+
4
;
rbox
.
right
=
checkBoxWidth
;
}
/* Since WM_ERASEBKGND does nothing, first prepare background */
if
(
action
==
ODA_SELECT
)
FillRect
(
hDC
,
&
rbox
,
hBrush
);
if
(
action
==
ODA_DRAWENTIRE
)
FillRect
(
hDC
,
&
client
,
hBrush
);
...
...
@@ -982,8 +983,6 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
if
(
dtFlags
==
(
UINT
)
-
1L
)
/* Noting to draw */
return
;
setup_clipping
(
hwnd
,
hDC
);
if
(
action
==
ODA_DRAWENTIRE
)
BUTTON_DrawLabel
(
hwnd
,
hDC
,
dtFlags
,
&
rtext
);
...
...
@@ -1044,6 +1043,7 @@ static void GB_Paint( HWND hwnd, HDC hDC, UINT action )
if
(
!
hbr
)
/* did the app forget to call defwindowproc ? */
hbr
=
(
HBRUSH
)
DefWindowProcW
(
parent
,
WM_CTLCOLORSTATIC
,
(
WPARAM
)
hDC
,
(
LPARAM
)
hwnd
);
setup_clipping
(
hwnd
,
hDC
);
GetClientRect
(
hwnd
,
&
rc
);
rcFrame
=
rc
;
...
...
@@ -1058,8 +1058,6 @@ static void GB_Paint( HWND hwnd, HDC hDC, UINT action )
if
(
dtFlags
==
(
UINT
)
-
1L
)
return
;
setup_clipping
(
hwnd
,
hDC
);
/* Because buttons have CS_PARENTDC class style, there is a chance
* that label will be drawn out of client rect.
* But Windows doesn't clip label's rect, so do I.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment