WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
Public Member Functions | Public Attributes | List of all members
ScrollBar Class Reference

Wrapper for scrollbar controls. More...

#include <control.h>

Inheritance diagram for ScrollBar:
Control IWindow

Public Member Functions

 ScrollBar (HWND hwnd=NULL, int scrollBarType=SB_CTL)
 
int GetPos ()
 
BOOL GetRange (int *minPos, int *maxPos)
 
BOOL GetScrollInfo (SCROLLINFO &info)
 
void Reset (HWND hwnd, int scrollBarType=SB_CTL)
 
int SetPos (int pos, BOOL redraw=TRUE)
 
BOOL SetRange (int minPos, int maxPos, BOOL redraw=TRUE)
 
int SetScrollInfo (SCROLLINFO &info, BOOL redraw=TRUE)
 
- Public Member Functions inherited from Control
 Control (HWND hwnd=NULL)
 
HWND _InternalGetHandle ()
 
 operator HWND ()
 
Controloperator= (HWND hwnd)
 
- Public Member Functions inherited from IWindow
Rect ClientRect ()
 
void Destroy ()
 
void DragAcceptFiles (BOOL accept=TRUE)
 
void Enable (BOOL enable)
 
DWORD GetExStyle ()
 
HFONT GetFont ()
 
HICON GetIcon (BOOL bigIcon)
 
DWORD GetID ()
 
DWORD GetStyle ()
 
tstring GetText ()
 
BOOL Invalidate (const RECT *rect=NULL, BOOL eraseBkgnd=TRUE)
 
BOOL IsEnabled ()
 
BOOL IsVisible ()
 
void KillTimer (UINT_PTR timerID)
 
void ModifyStyle (DWORD add, DWORD remove)
 
void Move (int x, int y, BOOL redraw=TRUE)
 
void Move (const POINT &p, BOOL redraw=TRUE)
 
void Move (int x, int y, int width, int height, BOOL redraw=TRUE)
 
void Move (const POINT &p, const SIZE &s, BOOL redraw=TRUE)
 
void Move (const RECT &r, BOOL redraw=TRUE)
 
HWND ParentHandle ()
 
Rect RectOnParent ()
 
BOOL Redraw (const RECT *rect=NULL, HRGN region=NULL, UINT flags=RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE)
 
HWND SetFocus ()
 
void SetFont (HFONT font, BOOL redraw=TRUE)
 
HICON SetIcon (HICON icon, BOOL bigIcon)
 
void SetRedraw (BOOL allowRedraw)
 
void SetText (const tstring &text)
 
UINT_PTR SetTimer (UINT_PTR timerID, UINT interval, TIMERPROC proc=NULL)
 
BOOL Show (int cmdShow)
 
Rect WindowRect ()
 

Public Attributes

int bar
 
- Public Attributes inherited from Control
HWND handle
 

Detailed Description

Wrapper for scrollbar controls.

Constructor & Destructor Documentation

ScrollBar::ScrollBar ( HWND  hwnd = NULL,
int  scrollBarType = SB_CTL 
)
inline
See Also
Reset()

Member Function Documentation

int ScrollBar::GetPos ( )
inline
BOOL ScrollBar::GetRange ( int *  minPos,
int *  maxPos 
)
inline
BOOL ScrollBar::GetScrollInfo ( SCROLLINFO &  info)
inline
void ScrollBar::Reset ( HWND  hwnd,
int  scrollBarType = SB_CTL 
)
inline
Parameters
hwndHandle of a scrollbar control or a window with the WS_HSCROLL / WS_VSCROLL style.
scrollBarTypeCB_CTL if the window is a scrollbar control. SB_HORZ / SB_VERT if hwnd is a window with the WS_HSCROLL / WS_VSCROLL style.
int ScrollBar::SetPos ( int  pos,
BOOL  redraw = TRUE 
)
inline
BOOL ScrollBar::SetRange ( int  minPos,
int  maxPos,
BOOL  redraw = TRUE 
)
inline
int ScrollBar::SetScrollInfo ( SCROLLINFO &  info,
BOOL  redraw = TRUE 
)
inline

Member Data Documentation

int ScrollBar::bar

Type identifier of the scrollbar (SB_CTL, SB_HORZ, SB_VERT)


The documentation for this class was generated from the following file: