共用方式為


DDP_Check

Call this function in your property page's DoDataExchange function to synchronize the value of the property with the associated property page check box control.

void AFXAPI DDP_Check(
   CDataExchange*pDX,
   int id,
   int &member,
   LPCSTR pszPropName 
);

Parameters

  • pDX
    Pointer to a CDataExchange object. The framework supplies this object to establish the context of the data exchange, including its direction.

  • id
    The resource ID of the check box control associated with the control property specified by pszPropName.

  • member
    The member variable associated with the property page control specified by id and the property specified by pszPropName.

  • pszPropName
    The property name of the control property to be exchanged with the check box control specified by id.

Remarks

This function should be called before the corresponding DDX_Check function call.

Requirements

Header: afxctl.h

See Also

Reference

DDP_Radio

DDP_Text

COleControl::DoPropExchange

DDX_Check

Concepts

MFC Macros and Globals