Share via


DISP_DEFVALUE

Makes an existing property the default value of an object.

DISP_DEFVALUE(theClass, pszName )

Parameters

  • theClass
    Name of the class.

  • pszName
    External name of the property that represents the "value" of the object.

Remarks

Using a default value can make programming your automation object simpler for Visual Basic applications.

The "default value" of your object is the property that is retrieved or set when a reference to an object does not specify a property or member function.

Requirements

Header: afxdisp.h

See Also

Concepts

MFC Macros and Globals

Reference

DECLARE_DISPATCH_MAP

DISP_PROPERTY_EX

DISP_FUNCTION

BEGIN_DISPATCH_MAP

END_DISPATCH_MAP

Other Resources

Dispatch Maps