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
cc870dc4
Commit
cc870dc4
authored
May 18, 2010
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Paint button focus in the ODA_SELECT case too.
parent
be5a6285
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
button.c
dlls/user32/button.c
+3
-6
No files found.
dlls/user32/button.c
View file @
cc870dc4
...
...
@@ -833,8 +833,7 @@ static void PB_Paint( HWND hwnd, HDC hDC, UINT action )
SetTextColor
(
hDC
,
oldTxtColor
);
draw_focus:
if
((
action
==
ODA_FOCUS
)
||
((
action
==
ODA_DRAWENTIRE
)
&&
(
state
&
BUTTON_HASFOCUS
)))
if
(
action
==
ODA_FOCUS
||
(
state
&
BUTTON_HASFOCUS
))
{
InflateRect
(
&
rc
,
-
2
,
-
2
);
DrawFocusRect
(
hDC
,
&
rc
);
...
...
@@ -963,8 +962,7 @@ static void CB_Paint( HWND hwnd, HDC hDC, UINT action )
BUTTON_DrawLabel
(
hwnd
,
hDC
,
dtFlags
,
&
rtext
);
/* ... and focus */
if
((
action
==
ODA_FOCUS
)
||
((
action
==
ODA_DRAWENTIRE
)
&&
(
state
&
BUTTON_HASFOCUS
)))
if
(
action
==
ODA_FOCUS
||
(
state
&
BUTTON_HASFOCUS
))
{
rtext
.
left
--
;
rtext
.
right
++
;
...
...
@@ -1072,8 +1070,7 @@ static void UB_Paint( HWND hwnd, HDC hDC, UINT action )
(
WPARAM
)
hDC
,
(
LPARAM
)
hwnd
);
FillRect
(
hDC
,
&
rc
,
hBrush
);
if
((
action
==
ODA_FOCUS
)
||
((
action
==
ODA_DRAWENTIRE
)
&&
(
state
&
BUTTON_HASFOCUS
)))
if
(
action
==
ODA_FOCUS
||
(
state
&
BUTTON_HASFOCUS
))
DrawFocusRect
(
hDC
,
&
rc
);
switch
(
action
)
...
...
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