Export (0) Print
Expand All
MFC
TRY
Expand Minimize
This topic has not yet been rated - Rate this topic

DISP_PROPERTY_NOTIFY

Defines an OLE automation property with notification in a dispatch map.

DISP_PROPERTY_NOTIFY(theClass, szExternalName, memberName, pfnAfterSet, vtPropType )
theClass

Name of the class.

szExternalName

External name of the property.

memberName

Name of the member variable in which the property is stored.

pfnAfterSet

Name of the notification function for szExternalName.

vtPropType

A value specifying the property's type.

Unlike properties defined with DISP_PROPERTY, a property defined with DISP_PROPERTY_NOTIFY will automatically call the function specified by pfnAfterSet when the property is changed.

The vtPropType argument is of type VARTYPE. Possible values for this argument are taken from the VARENUM enumeration:

Symbol

Property type

VT_I2

short

VT_I4

long

VT_R4

float

VT_R8

double

VT_CY

CY

VT_DATE

DATE

VT_BSTR

CString

VT_DISPATCH

LPDISPATCH

VT_ERROR

SCODE

VT_BOOL

BOOL

VT_VARIANT

VARIANT

VT_UNKNOWN

LPUNKNOWN

Header: afxdisp.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.