<< Return to Main Index

< Return to Class Index

DDV_GXTabWnd

void AFXAPI DDV_GXTabWnd(CDataExchange* pDX, CGXTabWnd* pTabWnd);

pDX

A pointer to a CDataExchange object.

pTabWnd

A pointer to the tabbed window.

Remarks

You should call this data validation routine when you are using a grid in a CDialog from the dialog’s DoDataExchange method, as in the following example:

void CSample2Dialog::DoDataExchange(CDataExchange* pDX)

{

CDialog::DoDataExchange(pDX);

//{{AFX_DATA_MAP(CSample5Dialog)

DDX_Text(pDX, IDC_EDIT1, m_nEdit);

DDV_MinMaxInt(pDX, m_nEdit, 0, 100);

DDX_Text(pDX, IDC_EDIT2, m_nVal2);

DDV_MinMaxInt(pDX, m_nVal2, 0, 100);

//}}AFX_DATA_MAP

// validation routine for CGXTabWnd controls

DDV_GXTabWnd(pDX, &m_wndTab);

}

See Also

CGXTabWnd

Macros

Class Overview | Class Members