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 struct tagSBCALC
|
|
|
|
{
|
|
|
|
INT posMin;
|
|
|
|
INT posMax;
|
|
|
|
INT page;
|
|
|
|
INT pos;
|
|
|
|
INT pxTop;
|
|
|
|
INT pxBottom;
|
|
|
|
INT pxLeft;
|
|
|
|
INT pxRight;
|
|
|
|
INT cpxThumb;
|
|
|
|
INT pxUpArrow;
|
|
|
|
INT pxDownArrow;
|
|
|
|
INT pxStart;
|
|
|
|
INT pxThumbBottom;
|
|
|
|
INT pxThumbTop;
|
|
|
|
INT cpx;
|
|
|
|
INT pxMin;
|
|
|
|
} SBCALC, *PSBCALC;
|
|
|
|
|
|
|
|
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-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;
|
2004-04-17 11:00:14 +00:00
|
|
|
|
|
|
|
#define IntGetScrollbarInfoFromWindow(Window, i) \
|
2010-01-10 07:50:57 +00:00
|
|
|
((PSCROLLBARINFO)(&((Window)->pSBInfo + i)->ScrollBarInfo))
|
2004-04-17 11:00:14 +00:00
|
|
|
|
|
|
|
#define IntGetScrollInfoFromWindow(Window, i) \
|
2010-01-10 07:50:57 +00:00
|
|
|
((LPSCROLLINFO)(&((Window)->pSBInfo + 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
|
|
|
|
2005-09-05 21:19:23 +00:00
|
|
|
BOOL FASTCALL co_IntCreateScrollBars(PWINDOW_OBJECT Window);
|
2004-04-17 11:00:14 +00:00
|
|
|
BOOL FASTCALL IntDestroyScrollBars(PWINDOW_OBJECT Window);
|