Поделиться через


CDataExchange::CDataExchange

Call this member function to construct a CDataExchange object.

CDataExchange(
   CWnd* pDlgWnd,
   BOOL bSaveAndValidate 
);

Параметры

  • 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.

Заметки

Construct a CDataExchange object yourself to store extra information in the data exchange object to pass to your window's CWnd::DoDataExchange member function.

Пример

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();
} 

Требования

Header: afxwin.h

См. также

Основные понятия

CDataExchange Class

CDataExchange Members

Hierarchy Chart