Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Call this member function to construct a CDataExchange object.
CDataExchange(
CWnd* pDlgWnd,
BOOL bSaveAndValidate
);
Parameters
pDlgWnd
A pointer to the parent window that contains the control. Usually this is a CDialog-derived object.bSaveAndValidate
If TRUE, this object validates data, then writes data from the controls to the members. If FALSE, this object will move data from members to controls.
Remarks
Construct a CDataExchange object yourself to store extra information in the data exchange object to pass to your window's CWnd::DoDataExchange member function.
Example
CYourDataExchange dx(this, FALSE);
try
{
DoDataExchange(&dx);
}
catch(CUserException* pe)
{
// some part of the exchange went wrong
// but the user has already been notified
pe->Delete();
}
Requirements
Header: afxwin.h