CODControlComponent Class

class CODControlComponent: public CODWndComponent

This class encapsulates dialog controls as components. It extends the base  CODWndComponent with a control ID that is used to identify the control on a dialog. The control ID is bundled with command messages in order to identify the control that fired a given command.

Defined in: OdWndComp.h

Class Members

 CODControlComponent(const UINT nCtlID = 1)

Constructor.

 CODControlComponent(const CODControlComponent& src)

Copy constructor.

virtual  ~CODControlComponent()

Destructor.

UINT m_nCtlID

Control ID.

void  SetControlID(const UINT nCtlID)

Sets the control ID.

UINT  GetControlID() const

Gets the control ID.

CODControlComponent&  operator=(const CODControlComponent& src)

Assignment operator.

virtual CODComponent*  Dup() const

Creates a copy of this component.

virtual void  Serialize(CArchive& ar)

Serializes the control component.