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

Wrapper for buttons, radiobuttons, checkboxes, groupboxes. More...

#include <control.h>

Inheritance diagram for Button:
Control IWindow

Public Member Functions

 Button (HWND hwnd=NULL)
 
void Click ()
 
HBITMAP GetBitmap ()
 
bool IsChecked ()
 
void SetBitmap (HBITMAP bitmap)
 
void SetChecked (bool check)
 
void Shrink ()
 
- 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 ()
 

Additional Inherited Members

- Public Attributes inherited from Control
HWND handle
 

Detailed Description

Wrapper for buttons, radiobuttons, checkboxes, groupboxes.

Constructor & Destructor Documentation

Button::Button ( HWND  hwnd = NULL)
inline

Member Function Documentation

void Button::Click ( )
inline
HBITMAP Button::GetBitmap ( )
inline
bool Button::IsChecked ( )
inline
void Button::SetBitmap ( HBITMAP  bitmap)
inline
void Button::SetChecked ( bool  check)
inline
void Button::Shrink ( )
inline

Shrink the button so it has just enough room for it's text.


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