RTD documentation


Main Page   Class Hierarchy   Compound List   Compound Members  

Crtd_DItem Class Reference

Dialog item configuration data class. More...

#include <rtd_DItem.h>

List of all members.

Public Methods

 Crtd_DItem (UINT nID = 0, CRect rcPos = CRect(0,0,0,0), DWORD dwStyle = 0, LPLOGFONT plfFont = NULL, DWORD dwRGB = DIALOG_COLOR)
 Constructor. More...

 Crtd_DItem (const Crtd_DItem& other)
 Copy constructor. More...

void operator= (const Crtd_DItem& other)
 Copy operator. More...

void operator= (const Crtd_DItem* other)
 Copy operator. More...

BOOL operator== (const Crtd_DItem& other)
 Equals operator. More...

BOOL operator!= (const Crtd_DItem& other)
 Equals operator. More...

void Serialize (CArchive& ar)
 Serialization method. More...

DWORD GetColor ()
 Returns color of the control.

UINT GetID ()
 Returns ID of the control.

void SetID (UINT nID)
 Sets ID of the control.

CRect GetPos ()
 Returns position of the control.

CString GetName ()
 Returns display name of the control.

void SetName (const CString& szName)
 Sets display name of the control.

DWORD GetStyle ()
 Returns style of the control.


Detailed Description

Dialog item configuration data class.

Crtd_DItem holds information about dialog control items which includes it's ID, Display name, Position, Color and Font. Crtd_Cfg maintains an array of Crtd_DItems and is responsible for it's serialization.

See also:
Crtd_Cfg
Version:
1.3
Date:
01.01.2000


Constructor & Destructor Documentation

Crtd_DItem::Crtd_DItem ( UINT nID = 0,
CRect rcPos = CRect(0,0,0,0),
DWORD dwStyle = 0,
LPLOGFONT plfFont = NULL,
DWORD dwRGB = DIALOG_COLOR )
 

Constructor.

Provides initialization values for the dialog control configuration items.

Parameters:
nID   resource ID of the control.
rcPos   position of the control.
dwStyle   window style.
plfFont   control's font.
dwRGB   control's color

Crtd_DItem::Crtd_DItem ( const Crtd_DItem & other ) [inline]
 

Copy constructor.

Copies values from the specified Crtd_DItem instance.

Parameters:
other   source Crtd_DItem instance.


Member Function Documentation

void Crtd_DItem::Serialize ( CArchive & ar )
 

Serialization method.

Stores or loads contents of a Crtd_DItem instance to an archive. CArchive has to be created and connected to a file before this method can be used.

Parameters:
ar   CArchive instance.

BOOL Crtd_DItem::operator!= ( const Crtd_DItem & other ) [inline]
 

Equals operator.

Compares THIS instance to the specified instance of Crtd_DItem.

Parameters:
other   source Crtd_DItem instance.
Returns:
true if instances are not equal.

void Crtd_DItem::operator= ( const Crtd_DItem * other ) [inline]
 

Copy operator.

Copies values from the specified Crtd_DItem instance pointed to by other.

Parameters:
other   pointer to source Crtd_DItem instance.

void Crtd_DItem::operator= ( const Crtd_DItem & other )
 

Copy operator.

Copies values from the specified Crtd_DItem instance.

Parameters:
other   source Crtd_DItem instance.

BOOL Crtd_DItem::operator== ( const Crtd_DItem & other )
 

Equals operator.

Compares THIS instance to the specified instance of Crtd_DItem.

Parameters:
other   source Crtd_DItem instance.
Returns:
true if instances are equal.


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

Last reviewed on Saturday February 07, 2004. Latest version is available at www.idealog.net