Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
13ffd58a
Commit
13ffd58a
authored
24 years ago
by
Sheri Steeves
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added save and reset of SetBKMode values in WM_PAINT.
Added handling of lParam value in BM_SETSTYLE.
parent
ae41e8c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controls/button.c
+7
-2
7 additions, 2 deletions
controls/button.c
with
7 additions
and
2 deletions
controls/button.c
+
7
−
2
View file @
13ffd58a
...
...
@@ -133,8 +133,9 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
{
PAINTSTRUCT
ps
;
HDC
hdc
=
wParam
?
(
HDC
)
wParam
:
BeginPaint
(
hWnd
,
&
ps
);
SetBkMode
(
hdc
,
OPAQUE
);
int
nOldMode
=
SetBkMode
(
hdc
,
OPAQUE
);
(
btnPaintFunc
[
style
])(
wndPtr
,
hdc
,
ODA_DRAWENTIRE
);
SetBkMode
(
hdc
,
nOldMode
);
/* reset painting mode */
if
(
!
wParam
)
EndPaint
(
hWnd
,
&
ps
);
}
break
;
...
...
@@ -266,7 +267,11 @@ static inline LRESULT WINAPI ButtonWndProc_locked(WND* wndPtr, UINT uMsg,
wndPtr
->
dwStyle
=
(
wndPtr
->
dwStyle
&
0xfffffff0
)
|
(
wParam
&
0x0000000f
);
style
=
wndPtr
->
dwStyle
&
0x0000000f
;
PAINT_BUTTON
(
wndPtr
,
style
,
ODA_DRAWENTIRE
);
/* Only redraw if lParam flag is set.*/
if
(
lParam
)
PAINT_BUTTON
(
wndPtr
,
style
,
ODA_DRAWENTIRE
);
break
;
case
BM_CLICK
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment