MWidgets::RadioButton Class Reference

Class that represent radiobutton widget. More...

#include <radiobutton.h>

Inheritance diagram for MWidgets::RadioButton:

MWidgets::Widget List of all members.

Public Member Functions

 RadioButton ()
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.

Detailed Description

Class that represent radiobutton widget.

Definition at line 14 of file radiobutton.h.

Constructor & Destructor Documentation

MWidgets::RadioButton::RadioButton (  ) 


Definition at line 19 of file radiobutton.cpp.

Member Function Documentation

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().

The documentation for this class was generated from the following files:
Generated on Thu Oct 26 13:47:46 2006 for MWidgets by  doxygen 1.4.7