2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2003-11-18 20:49:39 +00:00
|
|
|
|
2010-01-11 07:36:48 +00:00
|
|
|
typedef VOID (NEAR NTAPI *PFN_SCROLLBAR)(PWND, UINT, WPARAM, LPARAM, PSBCALC);
|
|
|
|
|
|
|
|
typedef struct tagSBTRACK
|
|
|
|
{
|
|
|
|
ULONG fHitOld:1;
|
|
|
|
ULONG fTrackVert:1;
|
|
|
|
ULONG fCtlSB:1;
|
|
|
|
ULONG fTrackRecalc:1;
|
|
|
|
PWND spwndTrack;
|
|
|
|
PWND spwndSB;
|
|
|
|
PWND spwndSBNotify;
|
|
|
|
RECT rcTrack;
|
|
|
|
PFN_SCROLLBAR xxxpfnSB;
|
|
|
|
UINT cmdSB;
|
|
|
|
UINT_PTR hTimerSB;
|
|
|
|
INT dpxThumb;
|
|
|
|
INT pxOld;
|
|
|
|
INT posOld;
|
|
|
|
INT posNew;
|
|
|
|
INT nBar;
|
|
|
|
PSBCALC pSBCalc;
|
|
|
|
} SBTRACK, *PSBTRACK;
|
|
|
|
|
2010-10-11 03:41:41 +00:00
|
|
|
/*
|
2010-01-10 07:50:57 +00:00
|
|
|
typedef struct _SBINFOEX
|
2004-04-17 11:00:14 +00:00
|
|
|
{
|
|
|
|
SCROLLBARINFO ScrollBarInfo;
|
|
|
|
SCROLLINFO ScrollInfo;
|
2010-01-10 07:50:57 +00:00
|
|
|
} SBINFOEX, *PSBINFOEX;
|
2010-10-11 03:41:41 +00:00
|
|
|
*/
|
2004-04-17 11:00:14 +00:00
|
|
|
#define IntGetScrollbarInfoFromWindow(Window, i) \
|
2010-10-11 03:41:41 +00:00
|
|
|
((PSCROLLBARINFO)(&((Window)->pSBInfoex + i)->ScrollBarInfo))
|
2004-04-17 11:00:14 +00:00
|
|
|
|
|
|
|
#define IntGetScrollInfoFromWindow(Window, i) \
|
2010-10-11 03:41:41 +00:00
|
|
|
((LPSCROLLINFO)(&((Window)->pSBInfoex + i)->ScrollInfo))
|
2004-04-17 11:00:14 +00:00
|
|
|
|
|
|
|
#define SBOBJ_TO_SBID(Obj) ((Obj) - OBJID_HSCROLL)
|
2004-05-12 09:47:16 +00:00
|
|
|
#define SBID_IS_VALID(id) (id == SB_HORZ || id == SB_VERT || id == SB_CTL)
|
2004-04-17 11:00:14 +00:00
|
|
|
|
2015-09-01 22:10:13 +00:00
|
|
|
BOOL FASTCALL co_IntCreateScrollBars(PWND);
|
|
|
|
BOOL FASTCALL IntDestroyScrollBars(PWND);
|
|
|
|
DWORD FASTCALL co_UserShowScrollBar(PWND,int,BOOL,BOOL);
|
|
|
|
BOOL FASTCALL co_IntGetScrollBarInfo(PWND,LONG,PSCROLLBARINFO);
|
|
|
|
BOOL FASTCALL co_IntSetScrollBarInfo(PWND,LONG,PSETSCROLLBARINFO);
|
|
|
|
void IntDrawScrollBar(PWND,HDC,INT);
|
|
|
|
BOOL FASTCALL IntScrollWindow(PWND,int,int,CONST RECT*,CONST RECT*);
|
|
|
|
DWORD FASTCALL IntScrollWindowEx(PWND,INT,INT,const RECT*,const RECT*,HRGN,LPRECT,UINT);
|