DISP_PROPERTY_EX

DISP_PROPERTY_EX( theClass, pszName, memberGet, memberSet, vtPropType )

#include <afxdisp.h>

Parameters

theClass

Name of the class.

pszName

External name of the property.

memberGet

Name of the member function used to get the property.

memberSet

Name of the member function used to set the property.

vtPropType

A value specifying the property’s type.

Remarks

The DISP_PROPERTY_EX macro is used in a dispatch map to define an OLE automation property and name the functions used to get and set the property’s value.

The memberGet and memberSet functions have signatures determined by the vtPropType argument. The memberGet function takes no arguments and returns a value of the type specified by vtPropType. The memberSet function takes an argument of the type specified by vtPropType and returns nothing.

The vtPropType argument is of type VARTYPE. Possible values for this argument are taken from the the VARENUM enumeration. For a list of these values, see the Remarks for the vtRetVal parameter in DISP_FUNCTION. Note that VT_EMPTY, listed in the DISP_FUNCTION remarks, is not permitted as a property data type.

See Also   Dispatch Maps, DECLARE_DISPATCH_MAP, DISP_PROPERTY, DISP_FUNCTION, BEGIN_DISPATCH_MAP, END_DISPATCH_MAP