aswang  1.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
aswang::Dialog Class Reference

#include <Dialog.h>

+ Inheritance diagram for aswang::Dialog:

List of all members.

Public Types

typedef std::map< unsigned
long, window * > 
childMap_type

Public Member Functions

 Dialog (unsigned long templateID=0, bool isModeless=true)
 Dialog (window *p, unsigned long templateID=0, bool isModeless=true)
virtual ~Dialog ()
virtual void Create (int x, int y, int width, int height)
virtual void Create ()
virtual const _TCHAR * GetClassName () const
virtual LRESULT OnFail (UINT msg, WPARAM wParam, LPARAM lParam)
virtual LRESULT OnClose ()
virtual LRESULT OnInitDialog (HWND win, unsigned long param)
HWND GetItem (unsigned long id)
AswangStr GetItemText (unsigned long id, unsigned long maxLength=1024)
void SetItemText (unsigned long id, AswangStr txt)
LRESULT SendItemMessage (unsigned long id, unsigned long message, WPARAM wParam, LPARAM lParam)
void bind (window *childWindow, unsigned long id)
HWND operator[] (unsigned long id)

Static Public Member Functions

static int Loop ()
static bool DispatchDialogMessage (MSG &msg)

Protected Attributes

childMap_type childMap

Detailed Description

Definition at line 24 of file Dialog.h.


Member Typedef Documentation

typedef std::map<unsigned long,window *> aswang::Dialog::childMap_type

Definition at line 26 of file Dialog.h.


Constructor & Destructor Documentation

aswang::Dialog::Dialog ( unsigned long  templateID = 0,
bool  isModeless = true 
) [inline]

Definition at line 33 of file Dialog.h.

aswang::Dialog::Dialog ( window p,
unsigned long  templateID = 0,
bool  isModeless = true 
) [inline]

Definition at line 34 of file Dialog.h.

virtual aswang::Dialog::~Dialog ( ) [inline, virtual]

Definition at line 35 of file Dialog.h.


Member Function Documentation

void aswang::Dialog::bind ( window childWindow,
unsigned long  id 
) [inline]

Definition at line 49 of file Dialog.h.

void Dialog::Create ( int  x,
int  y,
int  width,
int  height 
) [virtual]

Reimplemented from aswang::window.

Definition at line 24 of file Dialog.cpp.

void Dialog::Create ( ) [virtual]

Definition at line 30 of file Dialog.cpp.

bool Dialog::DispatchDialogMessage ( MSG &  msg) [static]

Definition at line 108 of file Dialog.cpp.

virtual const _TCHAR* aswang::Dialog::GetClassName ( ) const [inline, virtual]

Implements aswang::window.

Definition at line 39 of file Dialog.h.

HWND Dialog::GetItem ( unsigned long  id)

Definition at line 67 of file Dialog.cpp.

AswangStr Dialog::GetItemText ( unsigned long  id,
unsigned long  maxLength = 1024 
)

Definition at line 73 of file Dialog.cpp.

int Dialog::Loop ( ) [static]

Reimplemented from aswang::window.

Definition at line 97 of file Dialog.cpp.

LRESULT Dialog::OnClose ( ) [virtual]

Reimplemented from aswang::window.

Definition at line 45 of file Dialog.cpp.

LRESULT Dialog::OnFail ( UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
) [virtual]

Reimplemented from aswang::window.

Definition at line 41 of file Dialog.cpp.

LRESULT Dialog::OnInitDialog ( HWND  win,
unsigned long  param 
) [virtual]

Reimplemented from aswang::window.

Definition at line 58 of file Dialog.cpp.

HWND Dialog::operator[] ( unsigned long  id)

Definition at line 91 of file Dialog.cpp.

LRESULT Dialog::SendItemMessage ( unsigned long  id,
unsigned long  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 87 of file Dialog.cpp.

void Dialog::SetItemText ( unsigned long  id,
AswangStr  txt 
)

Definition at line 83 of file Dialog.cpp.


Member Data Documentation

Definition at line 31 of file Dialog.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines