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
18c41f71
Commit
18c41f71
authored
Feb 15, 2015
by
Mark Harmstone
Committed by
Alexandre Julliard
Feb 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Draw focus rect on themed pushbuttons.
parent
dba0fe36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
theme_button.c
dlls/comctl32/theme_button.c
+15
-0
No files found.
dlls/comctl32/theme_button.c
View file @
18c41f71
...
...
@@ -122,6 +122,21 @@ static void PB_draw(HTHEME theme, HWND hwnd, HDC hDC, ButtonState drawState, UIN
HeapFree
(
GetProcessHeap
(),
0
,
text
);
}
if
(
focused
)
{
MARGINS
margins
;
RECT
focusRect
=
bgRect
;
GetThemeMargins
(
theme
,
hDC
,
BP_PUSHBUTTON
,
state
,
TMT_CONTENTMARGINS
,
NULL
,
&
margins
);
focusRect
.
left
+=
margins
.
cxLeftWidth
;
focusRect
.
top
+=
margins
.
cyTopHeight
;
focusRect
.
right
-=
margins
.
cxRightWidth
;
focusRect
.
bottom
-=
margins
.
cyBottomHeight
;
DrawFocusRect
(
hDC
,
&
focusRect
);
}
if
(
hPrevFont
)
SelectObject
(
hDC
,
hPrevFont
);
}
...
...
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