mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
397 B
12 lines
397 B
// stuff for doing auto scrolling
|
|
#define NUM_POINTS 3
|
|
typedef struct { // asd
|
|
int iNextSample;
|
|
DWORD dwLastScroll;
|
|
BOOL bFull;
|
|
POINT pts[NUM_POINTS];
|
|
DWORD dwTimes[NUM_POINTS];
|
|
} AUTO_SCROLL_DATA;
|
|
|
|
#define DAD_InitScrollData(pad) (pad)->bFull = FALSE, (pad)->iNextSample = 0, (pad)->dwLastScroll = 0
|
|
BOOL DAD_AutoScroll(HWND hwnd, AUTO_SCROLL_DATA *pad, const POINT *pptNow);
|