Commit bb8bd7fa authored by Vincent Wei's avatar Vincent Wei
Browse files

use GetWindowElementPixelEx instead of GetWindowElementPixel or GetWindowElementColor

parent bfc0051c
Showing with 3 additions and 3 deletions
+3 -3
......@@ -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));
GetWindowElementPixelEx (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));
GetWindowElementPixelEx (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 = GetWindowElementPixelEx (hWnd, hdc_graphic, WE_BGCB_ACTIVE_CAPTION);
SetTextColor (hdc_graphic,
DWORD2Pixel (hdc_graphic,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment