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
4cf682b8
Commit
4cf682b8
authored
Oct 11, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: toolbar: Remove dwItemCustDraw from TOOLBAR_INFO and store it as a local variable.
parent
e0e2d748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
toolbar.c
dlls/comctl32/toolbar.c
+5
-5
No files found.
dlls/comctl32/toolbar.c
View file @
4cf682b8
...
...
@@ -140,7 +140,6 @@ typedef struct
INT
nOldHit
;
INT
nHotItem
;
/* index of the "hot" item */
DWORD
dwBaseCustDraw
;
/* CDRF_ response (w/o TBCDRF_) from PREPAINT */
DWORD
dwItemCustDraw
;
/* CDRF_ response (w/o TBCDRF_) from ITEMPREP */
DWORD
dwItemCDFlag
;
/* TBCDRF_ flags from last ITEMPREPAINT */
SIZE
szPadding
;
/* padding values around button */
INT
iListGap
;
/* default gap between text and image for toolbar with list style */
...
...
@@ -821,6 +820,7 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
DWORD
ntfret
;
INT
offset
;
INT
oldBkMode
;
DWORD
dwItemCustDraw
;
HTHEME
theme
=
GetWindowTheme
(
hwnd
);
rc
=
btnPtr
->
rect
;
...
...
@@ -949,7 +949,7 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
tbcd
.
hpenLines
=
0
;
/* Issue Item Prepaint notify */
infoPtr
->
dwItemCustDraw
=
0
;
dwItemCustDraw
=
0
;
infoPtr
->
dwItemCDFlag
=
0
;
if
(
infoPtr
->
dwBaseCustDraw
&
CDRF_NOTIFYITEMDRAW
)
{
...
...
@@ -961,9 +961,9 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
tbcd
.
nmcd
.
hdc
=
hdc
;
tbcd
.
nmcd
.
rc
=
rc
;
infoPtr
->
dwItemCustDraw
=
ntfret
&
0xffff
;
dwItemCustDraw
=
ntfret
&
0xffff
;
infoPtr
->
dwItemCDFlag
=
ntfret
&
0xffff0000
;
if
(
infoPtr
->
dwItemCustDraw
&
CDRF_SKIPDEFAULT
)
if
(
dwItemCustDraw
&
CDRF_SKIPDEFAULT
)
return
;
/* save the only part of the rect that the user can change */
rcText
.
right
=
tbcd
.
rcText
.
right
+
rc
.
left
;
...
...
@@ -1058,7 +1058,7 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
TOOLBAR_DrawArrow
(
hdc
,
rcArrow
.
left
,
rcArrow
.
top
+
(
rcArrow
.
bottom
-
rcArrow
.
top
-
ARROW_HEIGHT
)
/
2
,
comctl32_color
.
clrBtnText
);
}
if
(
infoPtr
->
dwItemCustDraw
&
CDRF_NOTIFYPOSTPAINT
)
if
(
dwItemCustDraw
&
CDRF_NOTIFYPOSTPAINT
)
{
tbcd
.
nmcd
.
dwDrawStage
=
CDDS_ITEMPOSTPAINT
;
TOOLBAR_SendNotify
(
&
tbcd
.
nmcd
.
hdr
,
infoPtr
,
NM_CUSTOMDRAW
);
...
...
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