Windows C++ Library
Classes | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Friends
CDialog Class Reference

#include <Dialog.hpp>

Inheritance diagram for CDialog:
CMsgWnd CWnd CMainDlg CPropertyPage

List of all members.

Classes

struct  CTLGRAVITY
struct  CTRL

Public Member Functions

 CDialog (uint iRscID)
virtual ~CDialog ()
bool RunModeless (CWnd &rParent)
int RunModal (CWnd &rParent)

Protected Types

enum  Gravity { LEFT_EDGE = 0, RIGHT_EDGE = 1, TOP_EDGE = 0, BOTTOM_EDGE = 1 }
typedef std::vector< CTRLControls
 The collection of controls.
typedef std::vector< CTLGRAVITYGravities
 The collection of control gravity settings.

Protected Member Functions

virtual LRESULT WndProc (HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
virtual LRESULT DefaultWndProc (HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
virtual void OnCreate (const CRect &rcClient)
virtual void OnInitDialog ()
virtual bool OnOk ()
virtual bool OnCancel ()
virtual void OnResize (int iFlag, const CSize &rNewSize)
virtual void OnPaint (CDC &rDC)
virtual void OnHitTest (const CPoint &ptCursor)
HWND CtrlHandle (int iCtrlID) const
void ControlTable (CTRL *pCtrlTable)
void InitControls ()
void GravityTable (CTLGRAVITY *pGravTable)
void InitGravityTable ()
virtual void EndDialog (int nResult=IDCANCEL)

Static Protected Member Functions

static WCL::DlgResult DIALOGPROC DlgProc (HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)

Protected Attributes

uint m_iRscID
bool m_bModal
Controls m_vControls
Gravities m_vGravities
CSize m_StartSize
CWndm_pParentWnd
bool m_bNoSizeGrip
CRect m_rcOldGrip

Private Member Functions

 CDialog (const CDialog &)
CDialogoperator= (const CDialog &)

Friends

struct tagCTLGRAVITY

Member Typedef Documentation

typedef std::vector<CTRL> CDialog::Controls [protected]

The collection of controls.

typedef std::vector<CTLGRAVITY> CDialog::Gravities [protected]

The collection of control gravity settings.


Member Enumeration Documentation

enum CDialog::Gravity [protected]
Enumerator:
LEFT_EDGE 
RIGHT_EDGE 
TOP_EDGE 
BOTTOM_EDGE 

Constructor & Destructor Documentation

CDialog::CDialog ( uint  iRscID)
CDialog::~CDialog ( ) [virtual]
CDialog::CDialog ( const CDialog ) [private]

Member Function Documentation

bool CDialog::RunModeless ( CWnd rParent)
int CDialog::RunModal ( CWnd rParent)
LRESULT CDialog::WndProc ( HWND  hWnd,
UINT  iMsg,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

Reimplemented from CMsgWnd.

LRESULT CDialog::DefaultWndProc ( HWND  hWnd,
UINT  iMsg,
WPARAM  wParam,
LPARAM  lParam 
) [protected, virtual]

Implements CMsgWnd.

WCL::DlgResult DIALOGPROC CDialog::DlgProc ( HWND  hWnd,
UINT  iMsg,
WPARAM  wParam,
LPARAM  lParam 
) [static, protected]
void CDialog::OnCreate ( const CRect rcClient) [protected, virtual]

Reimplemented from CMsgWnd.

void CDialog::OnInitDialog ( ) [protected, virtual]
bool CDialog::OnOk ( ) [protected, virtual]

Reimplemented in CPropertyPage.

bool CDialog::OnCancel ( ) [protected, virtual]
void CDialog::OnResize ( int  iFlag,
const CSize rNewSize 
) [protected, virtual]

Reimplemented from CMsgWnd.

void CDialog::OnPaint ( CDC rDC) [protected, virtual]

Reimplemented from CMsgWnd.

Reimplemented in CMainDlg.

void CDialog::OnHitTest ( const CPoint ptCursor) [protected, virtual]

Reimplemented from CMsgWnd.

HWND CDialog::CtrlHandle ( int  iCtrlID) const [inline, protected]
void CDialog::ControlTable ( CTRL pCtrlTable) [protected]
void CDialog::InitControls ( ) [protected]
void CDialog::GravityTable ( CTLGRAVITY pGravTable) [protected]
void CDialog::InitGravityTable ( ) [protected]
void CDialog::EndDialog ( int  nResult = IDCANCEL) [protected, virtual]
CDialog& CDialog::operator= ( const CDialog ) [private]

Friends And Related Function Documentation

friend struct tagCTLGRAVITY [friend]

Member Data Documentation

uint CDialog::m_iRscID [protected]
bool CDialog::m_bModal [protected]
bool CDialog::m_bNoSizeGrip [protected]

The documentation for this class was generated from the following files: