Condividi tramite


COleControlSite::BindDefaultProperty

Binds the calling object's default simple bound property, as marked in the type library, to the underlying cursor that is defined by the DataSource, UserName, Password, and SQL properties of the data-source control.

virtual void BindDefaultProperty(
   DISPID dwDispID,
   VARTYPE vtProp,
   LPCTSTR szFieldName,
   CWnd* pDSCWnd 
);

Parameters

  • dwDispID
    Specifies the DISPID of a property on a data-bound control that is to be bound to a data-source control.

  • vtProp
    Specifies the type of the property to be bound — for example, VT_BSTR, VT_VARIANT, and so on.

  • szFieldName
    Specifies the name of the column, in the cursor provided by the data-source control, to which the property will be bound.

  • pDSCWnd
    A pointer to the CWnd-derived object that hosts the data-source control to which the property will be bound.

Remarks

The CWnd object on which you call this function must be a data-bound control.

Requirements

Header: afxocc.h

See Also

Reference

COleControlSite Class

Hierarchy Chart

COleControlSite::BindProperty

Other Resources

COleControlSite Members