5 #ifndef _INC_cXScrollBar_H
6 #define _INC_cXScrollBar_H
13 #define SB_SIZE_DEFAULT ICONSIZE_SMALL
15 #define USE_OLD_SCROLLBAR_CODE 1
48 #if USE_OLD_SCROLLBAR_CODE
83 void put_ValueIndex(
int iIndex);
84 int get_ValueIndex()
const
89 void put_ValuePix(
int iPosInWnd);
90 int get_ValuePix()
const
95 int get_DragOffsetPix()
const
100 int get_ThumbPos()
const;
102 void put_RangeIndex(
int iEnd,
int iStart = 0);
103 int get_RangeIndex()
const
105 return m_RangeIndex.get_Max() - m_RangeIndex.get_Min();
108 void put_ThumbSizeIndex(
int iSize);
109 int get_ThumbSizeIndex()
const
111 return m_iThumbSizeIndex;
114 void put_ThumbSizePix(
int iSize);
115 int get_ThumbSizePix()
const
120 void put_Params(
int iRangeSize,
int iThumbSizeIndex,
int iPosIndex);
123 void put_ValueIndex_Internal(
int iPosWnd);
124 void put_ThumbPos(
int iPosWnd);
125 void put_DragOffsetPix(cPoint2i ptClickPos);
127 int get_PosPixFromPosWnd(
int iPosWnd)
const;
128 int get_PosWndFromPosPix(
int iPosPix)
const;
142 #if USE_OLD_SCROLLBAR_CODE
149 int m_iThumbSizeIndex;
157 #if USE_OLD_SCROLLBAR_CODE
DWORD D3DCOLOR
Stuff normally defined in windows.h or DirectX headers.
Definition: cColorRef.h:24
#define ASSERT(exp)
Definition: cDebugAssert.h:87
Definition: cXWindow.h:94
TYPE get_RangeX() const
Definition: cPair.h:72
Definition: GrayGUI.cpp:11
cRefPtr< cXScrollBar > cXScrollBarPtr
Definition: cXScrollBar.h:167
X_WNDCLASS_TYPE
Definition: cXWindow.h:34
UINT DLGID_t
old window format this was a WORD, EX format this is UINT32.
Definition: cResDialog.h:68
MBUTTON_TYPE
Definition: cInputBase.h:40
int PIXELS_t
Count of pixels in a dimension of some image/surface.
Definition: cSurfaceInfo.h:20
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22