Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vincent Wei
mgplus
Commits
bb8bd7fa
Commit
bb8bd7fa
authored
5 years ago
by
Vincent Wei
Browse files
Options
Download
Email Patches
Plain Diff
use GetWindowElementPixelEx instead of GetWindowElementPixel or GetWindowElementColor
parent
bfc0051c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/lf_fashion.cpp
+3
-3
src/api/lf_fashion.cpp
with
3 additions
and
3 deletions
+3
-3
src/api/lf_fashion.cpp
View file @
bb8bd7fa
...
...
@@ -243,7 +243,7 @@ static inline void erase_bkgnd (HWND hWnd, HDC hdc, const RECT *rect)
old_color
=
SetBrushColor
(
hdc
,
GetWindowBkColor
(
hWnd
));
else
old_color
=
SetBrushColor
(
hdc
,
GetWindowElementPixel
(
HWND_DESKTOP
,
WE_BGC_DESKTOP
));
GetWindowElementPixel
Ex
(
HWND_DESKTOP
,
hdc
,
WE_BGC_DESKTOP
));
FillBox
(
hdc
,
rect
->
left
,
rect
->
top
,
RECTWP
(
rect
),
RECTHP
(
rect
));
SetBrushColor
(
hdc
,
old_color
);
...
...
@@ -4235,7 +4235,7 @@ draw_trackbar (HWND hWnd, HDC hdc, LFRDR_TRACKBARINFO *info)
/* draw the tick of trackbar. */
if
(
!
(
dwStyle
&
TBS_NOTICK
))
{
SetPenColor
(
hdc_graphic
,
GetWindowElementPixel
(
hWnd
,
WE_FGC_THREED_BODY
));
GetWindowElementPixel
Ex
(
hWnd
,
hdc_graphic
,
WE_FGC_THREED_BODY
));
if
(
dwStyle
&
TBS_VERTICAL
)
{
TickStart
=
y
+
(
HEIGHT_VERT_SLIDER
>>
1
);
TickGap
=
itofix
(
h
-
HEIGHT_VERT_SLIDER
);
...
...
@@ -4580,7 +4580,7 @@ draw_progress (HWND hWnd, HDC hdc,
x
+=
((
w
-
text_ext
.
cx
)
>>
1
)
+
1
;
y
+=
((
h
-
text_ext
.
cy
)
>>
1
);
graphic_pixel
=
GetWindowElementPixel
(
hWnd
,
WE_BGCB_ACTIVE_CAPTION
);
graphic_pixel
=
GetWindowElementPixel
Ex
(
hWnd
,
hdc_graphic
,
WE_BGCB_ACTIVE_CAPTION
);
SetTextColor
(
hdc_graphic
,
DWORD2Pixel
(
hdc_graphic
,
...
...
This diff is collapsed.
Click to expand it.
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