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
5dfdd18a
Commit
5dfdd18a
authored
Mar 02, 2005
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation for consistency with the rest of the file.
parent
4c5832ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
41 deletions
+33
-41
status.c
dlls/comctl32/status.c
+33
-41
No files found.
dlls/comctl32/status.c
View file @
5dfdd18a
...
...
@@ -162,28 +162,24 @@ STATUSBAR_DrawPart (STATUS_INFO *infoPtr, HDC hdc, STATUSWINDOWPART *part, int i
DrawEdge
(
hdc
,
&
r
,
border
,
BF_RECT
|
BF_ADJUST
);
if
(
part
->
style
&
SBT_OWNERDRAW
)
{
DRAWITEMSTRUCT
dis
;
dis
.
CtlID
=
GetWindowLongPtrW
(
infoPtr
->
Self
,
GWLP_ID
);
dis
.
itemID
=
itemID
;
dis
.
hwndItem
=
infoPtr
->
Self
;
dis
.
hDC
=
hdc
;
dis
.
rcItem
=
r
;
dis
.
itemData
=
(
INT
)
part
->
text
;
SendMessageW
(
infoPtr
->
Notify
,
WM_DRAWITEM
,
(
WPARAM
)
dis
.
CtlID
,
(
LPARAM
)
&
dis
);
}
else
{
if
(
part
->
hIcon
)
{
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
;
}
if
(
part
->
style
&
SBT_OWNERDRAW
)
{
DRAWITEMSTRUCT
dis
;
dis
.
CtlID
=
GetWindowLongPtrW
(
infoPtr
->
Self
,
GWLP_ID
);
dis
.
itemID
=
itemID
;
dis
.
hwndItem
=
infoPtr
->
Self
;
dis
.
hDC
=
hdc
;
dis
.
rcItem
=
r
;
dis
.
itemData
=
(
INT
)
part
->
text
;
SendMessageW
(
infoPtr
->
Notify
,
WM_DRAWITEM
,
(
WPARAM
)
dis
.
CtlID
,
(
LPARAM
)
&
dis
);
}
else
{
if
(
part
->
hIcon
)
{
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
);
}
}
...
...
@@ -216,12 +212,11 @@ STATUSBAR_RefreshPart (STATUS_INFO *infoPtr, HDC hdc, STATUSWINDOWPART *part, in
if
(
infoPtr
->
clrBk
!=
CLR_DEFAULT
)
DeleteObject
(
hbrBk
);
if
(
GetWindowLongW
(
infoPtr
->
Self
,
GWL_STYLE
)
&
SBARS_SIZEGRIP
)
{
RECT
rect
;
if
(
GetWindowLongW
(
infoPtr
->
Self
,
GWL_STYLE
)
&
SBARS_SIZEGRIP
)
{
RECT
rect
;
GetClientRect
(
infoPtr
->
Self
,
&
rect
);
STATUSBAR_DrawSizeGrip
(
hdc
,
&
rect
);
GetClientRect
(
infoPtr
->
Self
,
&
rect
);
STATUSBAR_DrawSizeGrip
(
hdc
,
&
rect
);
}
}
...
...
@@ -243,19 +238,19 @@ STATUSBAR_Refresh (STATUS_INFO *infoPtr, HDC hdc)
GetClientRect
(
infoPtr
->
Self
,
&
rect
);
if
(
infoPtr
->
clrBk
!=
CLR_DEFAULT
)
hbrBk
=
CreateSolidBrush
(
infoPtr
->
clrBk
);
hbrBk
=
CreateSolidBrush
(
infoPtr
->
clrBk
);
else
hbrBk
=
GetSysColorBrush
(
COLOR_3DFACE
);
hbrBk
=
GetSysColorBrush
(
COLOR_3DFACE
);
FillRect
(
hdc
,
&
rect
,
hbrBk
);
hOldFont
=
SelectObject
(
hdc
,
infoPtr
->
hFont
?
infoPtr
->
hFont
:
infoPtr
->
hDefaultFont
);
if
(
infoPtr
->
simple
)
{
STATUSBAR_RefreshPart
(
infoPtr
,
hdc
,
&
infoPtr
->
part0
,
0
);
STATUSBAR_RefreshPart
(
infoPtr
,
hdc
,
&
infoPtr
->
part0
,
0
);
}
else
{
for
(
i
=
0
;
i
<
infoPtr
->
numParts
;
i
++
)
{
STATUSBAR_RefreshPart
(
infoPtr
,
hdc
,
&
infoPtr
->
parts
[
i
],
i
);
}
for
(
i
=
0
;
i
<
infoPtr
->
numParts
;
i
++
)
{
STATUSBAR_RefreshPart
(
infoPtr
,
hdc
,
&
infoPtr
->
parts
[
i
],
i
);
}
}
SelectObject
(
hdc
,
hOldFont
);
...
...
@@ -582,8 +577,8 @@ STATUSBAR_SetMinHeight (STATUS_INFO *infoPtr, INT height)
x
=
parent_rect
.
left
;
y
=
parent_rect
.
bottom
-
infoPtr
->
height
;
MoveWindow
(
infoPtr
->
Self
,
parent_rect
.
left
,
parent_rect
.
bottom
-
infoPtr
->
height
,
width
,
infoPtr
->
height
,
TRUE
);
parent_rect
.
bottom
-
infoPtr
->
height
,
width
,
infoPtr
->
height
,
TRUE
);
STATUSBAR_SetPartBounds
(
infoPtr
);
}
...
...
@@ -745,8 +740,7 @@ STATUSBAR_SetTipTextA (STATUS_INFO *infoPtr, INT id, LPSTR text)
ti
.
uId
=
id
;
ti
.
hinst
=
0
;
ti
.
lpszText
=
text
;
SendMessageA
(
infoPtr
->
hwndToolTip
,
TTM_UPDATETIPTEXTA
,
0
,
(
LPARAM
)
&
ti
);
SendMessageA
(
infoPtr
->
hwndToolTip
,
TTM_UPDATETIPTEXTA
,
0
,
(
LPARAM
)
&
ti
);
}
return
0
;
...
...
@@ -764,8 +758,7 @@ STATUSBAR_SetTipTextW (STATUS_INFO *infoPtr, INT id, LPWSTR text)
ti
.
uId
=
id
;
ti
.
hinst
=
0
;
ti
.
lpszText
=
text
;
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_UPDATETIPTEXTW
,
0
,
(
LPARAM
)
&
ti
);
SendMessageW
(
infoPtr
->
hwndToolTip
,
TTM_UPDATETIPTEXTW
,
0
,
(
LPARAM
)
&
ti
);
}
return
0
;
...
...
@@ -1089,8 +1082,7 @@ STATUSBAR_WMSize (STATUS_INFO *infoPtr, WORD flags)
/* Need to resize width to match parent */
TRACE
(
"flags %04x
\n
"
,
flags
);
if
(
flags
!=
SIZE_RESTORED
&&
flags
!=
SIZE_MAXIMIZED
)
{
if
(
flags
!=
SIZE_RESTORED
&&
flags
!=
SIZE_MAXIMIZED
)
{
WARN
(
"flags MUST be SIZE_RESTORED or SIZE_MAXIMIZED
\n
"
);
return
FALSE
;
}
...
...
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