IMPLEMENT_BSTR_STOCKPROP

IMPLEMENT_BSTR_STOCKPROP( fname, pname, dispid )

Parameters

fname

[in] Name used to create the names of the put and get methods.

pname

[in] Name used to create the name of the data member that stores the property value.

dispid

[in] The DISPID of the property.

Remarks

Implements text stock properties. Allocates a BSTR data member in your control class and copies pname into the data member. Creates a put and get method for the property, and adds code to notify and synchronize with the container if the property changes. Standard BSTR stock properties are Caption and Text.

The put and get method names are created by appending fname to put_ and get_. For example, if fname is Caption, the method names are put_Caption and get_Caption.

The data member name is created by appending pname to m_. For example, if pname is bstrCaption, the data member is m_bstrCaption.

ATL Macros and Global Functions

See Also

CStockPropImpl, IMPLEMENT_STOCKPROP, IMPLEMENT_BOOL_STOCKPROP, CComControl::m_bstrCaption, CComControl::m_bstrText