Partager via


CDataExchange::PrepareOleCtrl

The framework calls this member function to prepare the specified OLE control for dialog data exchange (DDX) and validation (DDV).

COleControlSite* PrepareOleCtrl(
   int nIDC
);

Parameters

  • nIDC
    The ID of the OLE control to be prepared for DDX or DDV.

Return Value

A pointer to the OLE control site.

Remarks

Use PrepareEditCtrl instead for edit controls or PrepareCtrl for all other non-OLE controls.

Implementors of custom DDX or DDV routines should call PrepareOleCtrl for all OLE controls for which they are exchanging data via DDX or validating data via DDV.

For more information on writing your own DDX and DDV routines, see Technical Note 26. For an overview of DDX and DDV, see Dialog Data Exchange and Validation and Dialog Box Topics.

Requirements

Header: afxwin.h

See Also

Concepts

CDataExchange Class

CDataExchange Members

Hierarchy Chart