#include <checkbox.h>
Inheritance diagram for MWidgets::CheckBox:

Public Member Functions | |
| CheckBox () | |
| Constructor. | |
| virtual void | Create (Widget *parent, int x, int y, int w, int h, string caption) |
| Create widgets window. | |
| BOOL | GetCheked () |
| Return 1 if it is checked. | |
| void | SetCheked (BOOL val) |
| Set widget checked or not. | |
| virtual WIDGET_TYPE | GetType () |
| Returns class's identifier like WINDOW or BUTTON. | |
Protected Member Functions | |
| virtual void | OnCommand (WORD code, WORD id) |
| Function starts callbacks. | |
Definition at line 14 of file checkbox.h.
| MWidgets::CheckBox::CheckBox | ( | ) |
| void MWidgets::CheckBox::Create | ( | Widget * | parent, | |
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h, | |||
| string | caption | |||
| ) | [virtual] |
Create widgets window.
| parent | parent widget. | |
| w | new Button's width. | |
| h | new Button's height. | |
| caption | new Button's caption. |
Definition at line 23 of file chekbox.cpp.
References MWidgets::Widget::Create(), and MWidgets::Widget::GetHwnd().
| BOOL MWidgets::CheckBox::GetCheked | ( | ) |
Return 1 if it is checked.
Definition at line 39 of file chekbox.cpp.
References MWidgets::Widget::m_hWnd.
Referenced by OnCommand().
| WIDGET_TYPE MWidgets::CheckBox::GetType | ( | ) | [virtual] |
Returns class's identifier like WINDOW or BUTTON.
Implements MWidgets::Widget.
Definition at line 53 of file chekbox.cpp.
References MWidgets::CHECKBOX.
| void MWidgets::CheckBox::OnCommand | ( | WORD | code, | |
| WORD | id | |||
| ) | [protected, virtual] |
Function starts callbacks.
Reimplemented from MWidgets::Widget.
Definition at line 28 of file chekbox.cpp.
References GetCheked(), and SetCheked().
| void MWidgets::CheckBox::SetCheked | ( | BOOL | val | ) |
Set widget checked or not.
| val | 1-checked 0-not checked. |
Definition at line 45 of file chekbox.cpp.
References MWidgets::Widget::m_hWnd.
Referenced by OnCommand().
1.4.7