Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
TRY
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

DISP_PROPERTY 

Defines an OLE automation property in a dispatch map.


DISP_PROPERTY(theClass, pszName, memberName, vtPropType )

Parameters

theClass

Name of the class.

pszName

External name of the property.

memberName

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

vtPropType

A value specifying the property's type.

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

When an external client changes the property, the value of the member variable specified by memberName changes; there is no notification of the change.

Header: afxdisp.h

Community Additions

ADD
Show:
© 2015 Microsoft