InvokeHelper函数的用法
来源:百度文库 编辑:神马文学网 时间:2024/10/02 20:23:38
InvokeHelper函数的用法
(2006-04-18 17:04:49)下面对InvokeHelper单独说明:
CWnd::InvokeHelper
void InvokeHelper( DISPID dwDispID, WORD wFlags, VARTYPE vtRet, void* pvRet, const BYTE* pbParamInfo, ... );
说明:
Call this member function to invoke the OLE control method or property specified by dwDispID, in the context specified by wFlags.
dwDispID:
//Identifies the method or property to be invoked. This value is usually supplied by Component Gallery.
//[ DISPATCH_METHOD ]
[ DISPATCH_PROPERTYGET ] The member is retrieved as a property or data member.
[ DISPATCH_PROPERTYPUT ] The member is changed as a property or data member.
[ DISPATCH_PROPERTYPUTREF ] The member is changed by a reference assignment, rather than a value assignment. This flag is valid only when the property accepts a reference to an object.
//Specifies the type of the return value.
VT_EMPTY
VT_I2
VT_I4
VT_R4
VT_R8
VT_CY
VT_DATE
VT_BSTR
VT_DISPATCH
VT_ERROR
VT_BOOL
VT_VARIANT VARIANT
VT_UNKNOWN
//Address of the variable that will that will receive the property value or return value. It must match the type specified by vtRet.
//Pointer to a null-terminated string of bytes specifying the types of the parameters following pbParamInfo.
specifies the types of the parameters passed to the method or property.