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
d130ba09
Commit
d130ba09
authored
Jul 08, 2014
by
Huw Davies
Committed by
Alexandre Julliard
Jul 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Don't use the RECT from the custom draw structure when referring to the button alone.
parent
2a12c6a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
toolbar.c
dlls/comctl32/toolbar.c
+4
-4
No files found.
dlls/comctl32/toolbar.c
View file @
d130ba09
...
...
@@ -748,10 +748,10 @@ TOOLBAR_DrawImage(const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, INT left, I
/* draws a blank frame for a toolbar button */
static
void
TOOLBAR_DrawFrame
(
const
TOOLBAR_INFO
*
infoPtr
,
const
NMTBCUSTOMDRAW
*
tbcd
,
DWORD
dwItemCDFlag
)
TOOLBAR_DrawFrame
(
const
TOOLBAR_INFO
*
infoPtr
,
const
NMTBCUSTOMDRAW
*
tbcd
,
const
RECT
*
rect
,
DWORD
dwItemCDFlag
)
{
HDC
hdc
=
tbcd
->
nmcd
.
hdc
;
RECT
rc
=
tbcd
->
nmcd
.
rc
;
RECT
rc
=
*
rect
;
/* if the state is disabled or indeterminate then the button
* cannot have an interactive look like pressed or hot */
BOOL
non_interactive_state
=
(
tbcd
->
nmcd
.
uItemState
&
CDIS_DISABLED
)
||
...
...
@@ -1021,10 +1021,10 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, HDC hdc,
||
(
drawSepDropDownArrow
&&
btnPtr
->
bDropDownPressed
))
stateId
=
TS_HOT
;
DrawThemeBackground
(
theme
,
hdc
,
partId
,
stateId
,
&
tbcd
.
nmcd
.
rc
,
NULL
);
DrawThemeBackground
(
theme
,
hdc
,
partId
,
stateId
,
&
rc
,
NULL
);
}
else
TOOLBAR_DrawFrame
(
infoPtr
,
&
tbcd
,
dwItemCDFlag
);
TOOLBAR_DrawFrame
(
infoPtr
,
&
tbcd
,
&
rc
,
dwItemCDFlag
);
if
(
drawSepDropDownArrow
)
{
...
...
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