#include <radiobutton.h>
Inheritance diagram for MWidgets::RadioButton:

Public Member Functions | |
| RadioButton () | |
| 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 () |
| Set widget checked. | |
| 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. | |
Static Protected Member Functions | |
| static BOOL CALLBACK | EnumChildProc (HWND hwnd, LPARAM lParam) |
| Callback for EnumChildWindows. | |
Definition at line 14 of file radiobutton.h.
| MWidgets::RadioButton::RadioButton | ( | ) |
| void MWidgets::RadioButton::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 radiobutton.cpp.
References MWidgets::Widget::Create(), and MWidgets::Widget::GetHwnd().
| BOOL CALLBACK MWidgets::RadioButton::EnumChildProc | ( | HWND | hwnd, | |
| LPARAM | lParam | |||
| ) | [static, protected] |
Callback for EnumChildWindows.
Set all radiobuttons state, from parent widget to lParam.
Definition at line 43 of file radiobutton.cpp.
Referenced by SetCheked().
| BOOL MWidgets::RadioButton::GetCheked | ( | ) |
Return 1 if it is checked.
Definition at line 37 of file radiobutton.cpp.
References MWidgets::Widget::m_hWnd.
Referenced by OnCommand().
| WIDGET_TYPE MWidgets::RadioButton::GetType | ( | ) | [virtual] |
Returns class's identifier like WINDOW or BUTTON.
Implements MWidgets::Widget.
Definition at line 60 of file radiobutton.cpp.
References MWidgets::RADIOBUTTON.
| void MWidgets::RadioButton::OnCommand | ( | WORD | code, | |
| WORD | id | |||
| ) | [protected, virtual] |
Function starts callbacks.
Reimplemented from MWidgets::Widget.
Definition at line 28 of file radiobutton.cpp.
References GetCheked(), and SetCheked().
| void MWidgets::RadioButton::SetCheked | ( | ) |
Set widget checked.
Definition at line 53 of file radiobutton.cpp.
References EnumChildProc(), MWidgets::Widget::GetParent(), and MWidgets::Widget::m_hWnd.
Referenced by OnCommand().
1.4.7