Commit c5af7969 authored by Ian Schmidt's avatar Ian Schmidt Committed by Alexandre Julliard

Corrected background color and fixed leaking GDI brush.

parent c35cce2e
...@@ -351,7 +351,7 @@ TRACKBAR_Refresh (HWND hwnd, HDC hdc) ...@@ -351,7 +351,7 @@ TRACKBAR_Refresh (HWND hwnd, HDC hdc)
TRACKBAR_INFO *infoPtr = TRACKBAR_GetInfoPtr (hwnd); TRACKBAR_INFO *infoPtr = TRACKBAR_GetInfoPtr (hwnd);
DWORD dwStyle = GetWindowLongA (hwnd, GWL_STYLE); DWORD dwStyle = GetWindowLongA (hwnd, GWL_STYLE);
RECT rcClient, rcChannel, rcSelection; RECT rcClient, rcChannel, rcSelection;
HBRUSH hBrush = CreateSolidBrush (infoPtr->clrBk); HBRUSH hBrush;
int i; int i;
GetClientRect (hwnd, &rcClient); GetClientRect (hwnd, &rcClient);
...@@ -420,7 +420,7 @@ TRACKBAR_Refresh (HWND hwnd, HDC hdc) ...@@ -420,7 +420,7 @@ TRACKBAR_Refresh (HWND hwnd, HDC hdc)
if (!(dwStyle & TBS_NOTHUMB)) { if (!(dwStyle & TBS_NOTHUMB)) {
HBRUSH hbr = CreateSolidBrush (COLOR_BACKGROUND); HBRUSH hbr = CreateSolidBrush (COLOR_BTNFACE);
RECT thumb = infoPtr->rcThumb; RECT thumb = infoPtr->rcThumb;
SelectObject (hdc, hbr); SelectObject (hdc, hbr);
...@@ -1081,7 +1081,7 @@ TRACKBAR_Create (HWND hwnd, WPARAM wParam, LPARAM lParam) ...@@ -1081,7 +1081,7 @@ TRACKBAR_Create (HWND hwnd, WPARAM wParam, LPARAM lParam)
infoPtr->uNumTics = 0; /* start and end tic are not included in count*/ infoPtr->uNumTics = 0; /* start and end tic are not included in count*/
infoPtr->uTicFreq = 1; infoPtr->uTicFreq = 1;
infoPtr->tics = NULL; infoPtr->tics = NULL;
infoPtr->clrBk = GetSysColor (COLOR_BACKGROUND); infoPtr->clrBk = GetSysColor (COLOR_BTNFACE);
infoPtr->hwndNotify = GetParent (hwnd); infoPtr->hwndNotify = GetParent (hwnd);
TRACKBAR_InitializeThumb (hwnd); TRACKBAR_InitializeThumb (hwnd);
......
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