From 85c60ef0339876f518bb00a41bf1b5529a384950 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 1 Jun 2015 16:21:34 -0400 Subject: [PATCH] Made sliders transparent. This is the first change that requires MinGW-w64 4.0; adding a check for that comes next. --- redo/windows/slider.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/redo/windows/slider.c b/redo/windows/slider.c index 3c156277..f7724fce 100644 --- a/redo/windows/slider.c +++ b/redo/windows/slider.c @@ -2,7 +2,6 @@ #include "uipriv_windows.h" // TODOs -// - investigate overriding WM_ERASEBKGND to simulate TBS_TRANSPARENTBKGND; windows xp tries to do this it seems for tab controls but doesn't really do a good job of it // - wine does not clamp TBM_SETPOS struct slider { @@ -87,8 +86,7 @@ uiSlider *uiNewSlider(intmax_t min, intmax_t max) s->hwnd = uiWindowsUtilCreateControlHWND(0, TRACKBAR_CLASSW, L"", - // TODO TBS_TRANSPARENTBKGND when making Vista-only - TBS_HORZ | TBS_TOOLTIPS | WS_TABSTOP, + TBS_HORZ | TBS_TOOLTIPS | TBS_TRANSPARENTBKGND | WS_TABSTOP, hInstance, NULL, TRUE);