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
2e48a2cc
Commit
2e48a2cc
authored
Oct 31, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 31, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not clear the drawing area for etched static controls.
Replaced our own drawing stuff in etched static controls by DrawEdge.
parent
382060dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
24 deletions
+2
-24
static.c
controls/static.c
+2
-24
No files found.
controls/static.c
View file @
2e48a2cc
...
...
@@ -474,41 +474,19 @@ static void STATIC_PaintBitmapfn(WND *wndPtr, HDC hdc )
static
void
STATIC_PaintEtchedfn
(
WND
*
wndPtr
,
HDC
hdc
)
{
RECT
rc
;
HBRUSH
hbrush
;
HPEN
hpen
;
if
(
TWEAK_WineLook
==
WIN31_LOOK
)
return
;
GetClientRect
(
wndPtr
->
hwndSelf
,
&
rc
);
hbrush
=
SendMessageA
(
GetParent
(
wndPtr
->
hwndSelf
),
WM_CTLCOLORSTATIC
,
hdc
,
wndPtr
->
hwndSelf
);
FillRect
(
hdc
,
&
rc
,
hbrush
);
switch
(
wndPtr
->
dwStyle
&
SS_TYPEMASK
)
{
case
SS_ETCHEDHORZ
:
hpen
=
SelectObject
(
hdc
,
GetSysColorPen
(
COLOR_3DSHADOW
));
MoveToEx
(
hdc
,
rc
.
left
,
rc
.
bottom
/
2
-
1
,
NULL
);
LineTo
(
hdc
,
rc
.
right
-
1
,
rc
.
bottom
/
2
-
1
);
SelectObject
(
hdc
,
GetSysColorPen
(
COLOR_3DHIGHLIGHT
));
MoveToEx
(
hdc
,
rc
.
left
,
rc
.
bottom
/
2
,
NULL
);
LineTo
(
hdc
,
rc
.
right
,
rc
.
bottom
/
2
);
LineTo
(
hdc
,
rc
.
right
,
rc
.
bottom
/
2
-
1
);
SelectObject
(
hdc
,
hpen
);
DrawEdge
(
hdc
,
&
rc
,
EDGE_ETCHED
,
BF_TOP
|
BF_BOTTOM
);
break
;
case
SS_ETCHEDVERT
:
hpen
=
SelectObject
(
hdc
,
GetSysColorPen
(
COLOR_3DSHADOW
));
MoveToEx
(
hdc
,
rc
.
right
/
2
-
1
,
rc
.
top
,
NULL
);
LineTo
(
hdc
,
rc
.
right
/
2
-
1
,
rc
.
bottom
-
1
);
SelectObject
(
hdc
,
GetSysColorPen
(
COLOR_3DHIGHLIGHT
));
MoveToEx
(
hdc
,
rc
.
right
/
2
,
rc
.
top
,
NULL
);
LineTo
(
hdc
,
rc
.
right
/
2
,
rc
.
bottom
);
LineTo
(
hdc
,
rc
.
right
/
2
-
1
,
rc
.
bottom
);
SelectObject
(
hdc
,
hpen
);
DrawEdge
(
hdc
,
&
rc
,
EDGE_ETCHED
,
BF_LEFT
|
BF_RIGHT
);
break
;
case
SS_ETCHEDFRAME
:
DrawEdge
(
hdc
,
&
rc
,
EDGE_ETCHED
,
BF_RECT
);
break
;
...
...
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