sprint 1-alpha
|
a generic button: TODO specialize for CheckBox, Radio More...
#include <Button.h>
Inherits sprint::gtl::CWindow.
Public Member Functions | |
Button (HWND hWnd=NULL) | |
Button (CWindow hWnd) | |
UINT | GetState () const |
void | SetState (BOOL bHighlight) |
bool | IsChecked () const |
void | Check (bool bCheck) |
Set or remove check on button. | |
UINT | GetButtonStyle () const |
void | SetButtonStyle (UINT nStyle, BOOL bRedraw=TRUE) |
HICON | GetIcon () const |
HICON | SetIcon (HICON hIcon) |
void | Click () |
Static Public Member Functions | |
static LPCTSTR | GetWndClassName () |
a generic button: TODO specialize for CheckBox, Radio
sprint::gtl::Button::Button | ( | HWND | hWnd = NULL | ) |
sprint::Button cb(GetDlgItem(hwnd, IDC_ACTION));
bool sprint::gtl::Button::IsChecked | ( | ) | const |
check if button is checked
m_lock_color = lock.IsChecked();