Initially, the Note property is a typical custom Get/Set property of type BSTR. After the Note property is added to the Circle control, the GetNote
and SetNote
functions are completed, the property is made persistent, and a control to edit its value is added to the property page.
To add the Note Get/Set property
The Add Property dialog box appears.
Note
.This returns you to the Automation tab. Notice that the implementation of the Note property appears as:
Implementation:
BSTR GetNote();
void SetNote(LPCTSTR lpszNewValue);
ClassWizard adds the Note property to the Circle control. As you've seen in earlier lessons, ClassWizard modifies CIRC.ODL, CIRCCTL.CPP, and CIRCCTL.H to define the Note property.