Add the Note property to the default property page to allow Circle control users to change its value.
First, use the resource editor to add an edit control to the default property page.
To add an edit control to the default property page
Link the Note property to the new edit control in the default property page using a shortcut to the Add Member Variable dialog box in ClassWizard.
To link the edit control with the Note property
This automatically opens the ClassWizard Add Member Variable dialog box.
note
in the Member variable name edit control, after the m_ that is already there, so that the edit control contains m_note.Note
in the Optional property name drop-down combo box.If you were to open ClassWizard, the Member Variables tab would contain the new member variable mapping for the Caption property.
Control IDs: Type Member
IDC_CAPTION CString m_caption
IDC_CIRCLEOFFSET int m_circleOffset
IDC_CIRCLESHAPE BOOL m_circleShape
IDC_NOTE CString m_note
ClassWizard adds the new m_note
member variable to the CCircPropPage
class. ClassWizard also modifies the DoDataExchange
function in the CCircPropPage
class.
The Note property is now fully implemented as a normal Get/Set property in the Circle control.