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
9751a946
Commit
9751a946
authored
Sep 14, 2011
by
Peter Schellenbach
Committed by
Alexandre Julliard
Oct 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/statusbar: Fixed missing icon in owner draw panels.
parent
95ca4446
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
status.c
dlls/comctl32/status.c
+9
-8
No files found.
dlls/comctl32/status.c
View file @
9751a946
...
@@ -207,6 +207,7 @@ STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART
...
@@ -207,6 +207,7 @@ STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART
UINT
border
=
BDR_SUNKENOUTER
;
UINT
border
=
BDR_SUNKENOUTER
;
HTHEME
theme
=
GetWindowTheme
(
infoPtr
->
Self
);
HTHEME
theme
=
GetWindowTheme
(
infoPtr
->
Self
);
int
themePart
=
SP_PANE
;
int
themePart
=
SP_PANE
;
int
x
=
0
;
TRACE
(
"part bound %s
\n
"
,
wine_dbgstr_rect
(
&
r
));
TRACE
(
"part bound %s
\n
"
,
wine_dbgstr_rect
(
&
r
));
if
(
part
->
style
&
SBT_POPOUT
)
if
(
part
->
style
&
SBT_POPOUT
)
...
@@ -224,6 +225,12 @@ STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART
...
@@ -224,6 +225,12 @@ STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART
else
else
DrawEdge
(
hdc
,
&
r
,
border
,
BF_RECT
|
BF_ADJUST
);
DrawEdge
(
hdc
,
&
r
,
border
,
BF_RECT
|
BF_ADJUST
);
if
(
part
->
hIcon
)
{
INT
cy
=
r
.
bottom
-
r
.
top
;
DrawIconEx
(
hdc
,
r
.
left
+
2
,
r
.
top
,
part
->
hIcon
,
cy
,
cy
,
0
,
0
,
DI_NORMAL
);
x
=
2
+
cy
;
}
if
(
part
->
style
&
SBT_OWNERDRAW
)
{
if
(
part
->
style
&
SBT_OWNERDRAW
)
{
DRAWITEMSTRUCT
dis
;
DRAWITEMSTRUCT
dis
;
...
@@ -233,15 +240,9 @@ STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART
...
@@ -233,15 +240,9 @@ STATUSBAR_DrawPart (const STATUS_INFO *infoPtr, HDC hdc, const STATUSWINDOWPART
dis
.
hDC
=
hdc
;
dis
.
hDC
=
hdc
;
dis
.
rcItem
=
r
;
dis
.
rcItem
=
r
;
dis
.
itemData
=
(
ULONG_PTR
)
part
->
text
;
dis
.
itemData
=
(
ULONG_PTR
)
part
->
text
;
SendMessageW
(
infoPtr
->
Notify
,
WM_DRAWITEM
,
dis
.
CtlID
,
(
LPARAM
)
&
dis
);
SendMessageW
(
infoPtr
->
Notify
,
WM_DRAWITEM
,
dis
.
CtlID
,
(
LPARAM
)
&
dis
);
}
else
{
}
else
{
if
(
part
->
hIcon
)
{
r
.
left
+=
x
;
INT
cy
=
r
.
bottom
-
r
.
top
;
r
.
left
+=
2
;
DrawIconEx
(
hdc
,
r
.
left
,
r
.
top
,
part
->
hIcon
,
cy
,
cy
,
0
,
0
,
DI_NORMAL
);
r
.
left
+=
cy
;
}
DrawStatusTextW
(
hdc
,
&
r
,
part
->
text
,
SBT_NOBORDERS
);
DrawStatusTextW
(
hdc
,
&
r
,
part
->
text
,
SBT_NOBORDERS
);
}
}
}
}
...
...
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