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.
This commit is contained in:
parent
ccfb1824cd
commit
3d35e9894c
File diff suppressed because it is too large
Load Diff
|
@ -18,26 +18,25 @@ typedef struct tagTRACKBAR_INFO
|
||||||
INT nPos;
|
INT nPos;
|
||||||
UINT uThumbLen;
|
UINT uThumbLen;
|
||||||
UINT uNumTics;
|
UINT uNumTics;
|
||||||
UINT uTicFreq;
|
UINT uTicFreq;
|
||||||
HWND hwndNotify;
|
HWND hwndNotify;
|
||||||
HWND hwndToolTip;
|
HWND hwndToolTip;
|
||||||
HWND hwndBuddyLA;
|
HWND hwndBuddyLA;
|
||||||
HWND hwndBuddyRB;
|
HWND hwndBuddyRB;
|
||||||
INT fLocation;
|
INT fLocation;
|
||||||
COLORREF clrBk;
|
COLORREF clrBk;
|
||||||
|
INT flags;
|
||||||
INT flags;
|
|
||||||
BOOL bFocus;
|
BOOL bFocus;
|
||||||
RECT rcChannel;
|
RECT rcChannel;
|
||||||
RECT rcSelection;
|
RECT rcSelection;
|
||||||
RECT rcThumb;
|
RECT rcThumb;
|
||||||
INT dragPos;
|
INT dragPos;
|
||||||
LPLONG tics;
|
LPLONG tics;
|
||||||
} TRACKBAR_INFO;
|
} TRACKBAR_INFO;
|
||||||
|
|
||||||
|
|
||||||
#define TB_REFRESH_TIMER 1
|
/* #define TB_REFRESH_TIMER 1 */
|
||||||
#define TB_REFRESH_DELAY 1
|
/* #define TB_REFRESH_DELAY 1 */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue