MWidgets::Widgets Class Reference

Singleton class that sends messages to all widgets. More...

#include <widgets.h>

List of all members.

Public Member Functions

void Run ()
 Method that recieves massages and dispatches them to widgets.
unsigned int GetNewId ()
 Generate unique id.
ATOM GetAtom ()
 Returns ATOM of widgets window class.

Static Public Member Functions

static WidgetsInstance ()
 Return pointer to Widgets instance.
static void Destroy ()
 Remove all data used by Widgets.
static void Init (Icon *pBigIcon=NULL, Icon *pSmallIcon=NULL)
 Init some common data for all Widgets.

Protected Member Functions

void AddWidget ()
 Increment widgets counter.
void DelWidget ()
 Decrement widgets counter.

Friends

class Widget


Detailed Description

Singleton class that sends messages to all widgets.

Definition at line 14 of file widgets.h.


Member Function Documentation

void MWidgets::Widgets::AddWidget (  )  [protected]

Increment widgets counter.

Definition at line 94 of file widgets.cpp.

Referenced by MWidgets::Widget::Create().

void MWidgets::Widgets::DelWidget (  )  [protected]

Decrement widgets counter.

Definition at line 99 of file widgets.cpp.

Referenced by MWidgets::Widget::OnMessage(), and MWidgets::Widget::~Widget().

void MWidgets::Widgets::Destroy (  )  [static]

Remove all data used by Widgets.

Definition at line 129 of file widgets.cpp.

References CATCHEXCEPT, count, and EXCEPT.

ATOM MWidgets::Widgets::GetAtom (  ) 

Returns ATOM of widgets window class.

Definition at line 147 of file widgets.cpp.

unsigned int MWidgets::Widgets::GetNewId (  ) 

Generate unique id.

Definition at line 123 of file widgets.cpp.

Referenced by MWidgets::Menu::InsertSubMenuItem(), and MWidgets::Widget::SetHotKey().

void MWidgets::Widgets::Init ( Icon pBigIcon = NULL,
Icon pSmallIcon = NULL 
) [static]

Init some common data for all Widgets.

Definition at line 25 of file widgets.cpp.

References EXCEPT, MWidgets::Icon::GetHICON(), m_aWidget, and MWidgets::Widget::WindowProcedure().

Widgets * MWidgets::Widgets::Instance (  )  [static]

Return pointer to Widgets instance.

Definition at line 68 of file widgets.cpp.

References CATCHEXCEPT, and EXCEPT.

Referenced by MWidgets::Widget::Create(), MWidgets::Menu::InsertSubMenuItem(), MWidgets::Widget::OnMessage(), MWidgets::Widget::SetHotKey(), and MWidgets::Widget::~Widget().

void MWidgets::Widgets::Run (  ) 

Method that recieves massages and dispatches them to widgets.

Definition at line 104 of file widgets.cpp.


Friends And Related Function Documentation

friend class Widget [friend]

Definition at line 28 of file widgets.h.


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