Removed the timer that was used to queue TRACKBAR_Refresh calls. Removed all direct calls to TRACKBAR_Refresh (except from within the WM_PAINT handling section) and replaced them by calls to InvalidateRect. Fixed a bug in the TRACKBAR_SetPos function. Fixed the behavior for different types of mouse input.
diff --git a/include/trackbar.h b/include/trackbar.h index 39884b2..9e15707 100644 --- a/include/trackbar.h +++ b/include/trackbar.h
@@ -18,26 +18,25 @@ INT nPos; UINT uThumbLen; UINT uNumTics; - UINT uTicFreq; - HWND hwndNotify; + UINT uTicFreq; + HWND hwndNotify; HWND hwndToolTip; HWND hwndBuddyLA; HWND hwndBuddyRB; INT fLocation; - COLORREF clrBk; - - INT flags; + COLORREF clrBk; + INT flags; BOOL bFocus; RECT rcChannel; RECT rcSelection; RECT rcThumb; - INT dragPos; + INT dragPos; LPLONG tics; } TRACKBAR_INFO; -#define TB_REFRESH_TIMER 1 -#define TB_REFRESH_DELAY 1 +/* #define TB_REFRESH_TIMER 1 */ +/* #define TB_REFRESH_DELAY 1 */