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
13ffd58a
Commit
13ffd58a
authored
Jun 11, 2000
by
Sheri Steeves
Committed by
Alexandre Julliard
Jun 11, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added save and reset of SetBKMode values in WM_PAINT.
Added handling of lParam value in BM_SETSTYLE.
parent
ae41e8c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
button.c
controls/button.c
+7
-2
No files found.
controls/button.c
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
:
...
...
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