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
7f8bf3e7
Commit
7f8bf3e7
authored
May 14, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/status: Use DrawFrameControl to draw the size grip.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f5c97b50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
41 deletions
+7
-41
status.c
dlls/comctl32/status.c
+7
-41
No files found.
dlls/comctl32/status.c
View file @
7f8bf3e7
...
...
@@ -143,60 +143,26 @@ STATUSBAR_ComputeHeight(STATUS_INFO *infoPtr)
static
void
STATUSBAR_DrawSizeGrip
(
HTHEME
theme
,
HDC
hdc
,
LPRECT
lpRect
)
{
HPEN
hPenFace
,
hPenShadow
,
hPenHighlight
,
hOldPen
;
POINT
pt
;
INT
i
;
RECT
rc
=
*
lpRect
;
TRACE
(
"draw size grip %s
\n
"
,
wine_dbgstr_rect
(
lpRect
));
if
(
theme
)
{
RECT
gripperRect
;
SIZE
gripperSize
;
gripperRect
=
*
lpRect
;
if
(
SUCCEEDED
(
GetThemePartSize
(
theme
,
hdc
,
SP_GRIPPER
,
0
,
lpRect
,
TS_DRAW
,
&
gripperSize
)))
{
gripperRect
.
left
=
gripperRect
.
right
-
gripperSize
.
cx
;
gripperRect
.
top
=
gripperRect
.
bottom
-
gripperSize
.
cy
;
if
(
SUCCEEDED
(
DrawThemeBackground
(
theme
,
hdc
,
SP_GRIPPER
,
0
,
&
gripperRect
,
NULL
)))
rc
.
left
=
rc
.
right
-
gripperSize
.
cx
;
rc
.
top
=
rc
.
bottom
-
gripperSize
.
cy
;
if
(
SUCCEEDED
(
DrawThemeBackground
(
theme
,
hdc
,
SP_GRIPPER
,
0
,
&
rc
,
NULL
)))
return
;
}
}
pt
.
x
=
lpRect
->
right
-
1
;
pt
.
y
=
lpRect
->
bottom
-
1
;
hPenFace
=
CreatePen
(
PS_SOLID
,
1
,
comctl32_color
.
clr3dFace
);
hOldPen
=
SelectObject
(
hdc
,
hPenFace
);
MoveToEx
(
hdc
,
pt
.
x
-
12
,
pt
.
y
,
NULL
);
LineTo
(
hdc
,
pt
.
x
,
pt
.
y
);
LineTo
(
hdc
,
pt
.
x
,
pt
.
y
-
13
);
pt
.
x
--
;
pt
.
y
--
;
hPenShadow
=
CreatePen
(
PS_SOLID
,
1
,
comctl32_color
.
clr3dShadow
);
SelectObject
(
hdc
,
hPenShadow
);
for
(
i
=
1
;
i
<
11
;
i
+=
4
)
{
MoveToEx
(
hdc
,
pt
.
x
-
i
,
pt
.
y
,
NULL
);
LineTo
(
hdc
,
pt
.
x
+
1
,
pt
.
y
-
i
-
1
);
MoveToEx
(
hdc
,
pt
.
x
-
i
-
1
,
pt
.
y
,
NULL
);
LineTo
(
hdc
,
pt
.
x
+
1
,
pt
.
y
-
i
-
2
);
}
hPenHighlight
=
CreatePen
(
PS_SOLID
,
1
,
comctl32_color
.
clr3dHilight
);
SelectObject
(
hdc
,
hPenHighlight
);
for
(
i
=
3
;
i
<
13
;
i
+=
4
)
{
MoveToEx
(
hdc
,
pt
.
x
-
i
,
pt
.
y
,
NULL
);
LineTo
(
hdc
,
pt
.
x
+
1
,
pt
.
y
-
i
-
1
);
}
SelectObject
(
hdc
,
hOldPen
);
DeleteObject
(
hPenFace
);
DeleteObject
(
hPenShadow
);
DeleteObject
(
hPenHighlight
);
rc
.
left
=
max
(
rc
.
left
,
rc
.
right
-
GetSystemMetrics
(
SM_CXVSCROLL
)
-
1
);
rc
.
top
=
max
(
rc
.
top
,
rc
.
bottom
-
GetSystemMetrics
(
SM_CYHSCROLL
)
-
1
);
DrawFrameControl
(
hdc
,
&
rc
,
DFC_SCROLL
,
DFCS_SCROLLSIZEGRIP
);
}
...
...
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