Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b32c0005
Commit
b32c0005
authored
Feb 23, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare background while drawing radio buttons and checkboxes.
parent
278dd15e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
button.c
controls/button.c
+4
-3
No files found.
controls/button.c
View file @
b32c0005
...
@@ -832,6 +832,10 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action )
...
@@ -832,6 +832,10 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action )
/* Draw the check-box bitmap */
/* Draw the check-box bitmap */
if
(
action
==
ODA_DRAWENTIRE
||
action
==
ODA_SELECT
)
if
(
action
==
ODA_DRAWENTIRE
||
action
==
ODA_SELECT
)
{
{
/* Since WM_ERASEBKGND does nothing, first prepare background */
if
(
action
==
ODA_SELECT
)
FillRect
(
hDC
,
&
rbox
,
hBrush
);
else
FillRect
(
hDC
,
&
client
,
hBrush
);
if
(
TWEAK_WineLook
==
WIN31_LOOK
)
if
(
TWEAK_WineLook
==
WIN31_LOOK
)
{
{
HDC
hMemDC
=
CreateCompatibleDC
(
hDC
);
HDC
hMemDC
=
CreateCompatibleDC
(
hDC
);
...
@@ -841,9 +845,6 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action )
...
@@ -841,9 +845,6 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action )
/* Check in case the client area is smaller than the checkbox bitmap */
/* Check in case the client area is smaller than the checkbox bitmap */
if
(
delta
<
0
)
delta
=
0
;
if
(
delta
<
0
)
delta
=
0
;
if
(
action
==
ODA_SELECT
)
FillRect
(
hDC
,
&
rbox
,
hBrush
);
else
FillRect
(
hDC
,
&
client
,
hBrush
);
if
(
infoPtr
->
state
&
BUTTON_HIGHLIGHTED
)
x
+=
2
*
checkBoxWidth
;
if
(
infoPtr
->
state
&
BUTTON_HIGHLIGHTED
)
x
+=
2
*
checkBoxWidth
;
if
(
infoPtr
->
state
&
(
BUTTON_CHECKED
|
BUTTON_3STATE
))
x
+=
checkBoxWidth
;
if
(
infoPtr
->
state
&
(
BUTTON_CHECKED
|
BUTTON_3STATE
))
x
+=
checkBoxWidth
;
if
(((
wndPtr
->
dwStyle
&
0x0f
)
==
BS_RADIOBUTTON
)
||
if
(((
wndPtr
->
dwStyle
&
0x0f
)
==
BS_RADIOBUTTON
)
||
...
...
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