各位大神,求指教!!!下面的函数:比如DDX_Text(pDX, IDC_AUTHOR, m_strAuthor);是什么意思?
voidCBookMDlg::DoDataExchange(CDataExchange*pDX){CDialog::DoDataExchange(pDX);//{{AFX...
void CBookMDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBookMDlg)
DDX_Text(pDX, IDC_AUTHOR, m_strAuthor);
DDV_MaxChars(pDX, m_strAuthor, 8);
DDX_Text(pDX, IDC_BOOKID, m_strBookID);
DDV_MaxChars(pDX, m_strBookID, 8);
DDX_Text(pDX, IDC_BOOKID_Q, m_strBookIDQ);
DDV_MaxChars(pDX, m_strBookIDQ, 8);
DDX_Text(pDX, IDC_BOOKNAME, m_strBookName);
DDV_MaxChars(pDX, m_strBookName, 8);
DDX_Text(pDX, IDC_BOOKNAME_Q, m_strBookNameQ);
DDV_MaxChars(pDX, m_strBookNameQ, 8);
DDX_Text(pDX, IDC_FLAG_BORROW, m_strFlag);
DDV_MaxChars(pDX, m_strFlag, 1);
DDX_Text(pDX, IDC_PRESS, m_strPress);
DDV_MaxChars(pDX, m_strPress, 20);
DDX_Text(pDX, IDC_PRESSDATE, m_strPressDate);
DDV_MaxChars(pDX, m_strPressDate, 10);
//}}AFX_DATA_MAP
} 展开
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBookMDlg)
DDX_Text(pDX, IDC_AUTHOR, m_strAuthor);
DDV_MaxChars(pDX, m_strAuthor, 8);
DDX_Text(pDX, IDC_BOOKID, m_strBookID);
DDV_MaxChars(pDX, m_strBookID, 8);
DDX_Text(pDX, IDC_BOOKID_Q, m_strBookIDQ);
DDV_MaxChars(pDX, m_strBookIDQ, 8);
DDX_Text(pDX, IDC_BOOKNAME, m_strBookName);
DDV_MaxChars(pDX, m_strBookName, 8);
DDX_Text(pDX, IDC_BOOKNAME_Q, m_strBookNameQ);
DDV_MaxChars(pDX, m_strBookNameQ, 8);
DDX_Text(pDX, IDC_FLAG_BORROW, m_strFlag);
DDV_MaxChars(pDX, m_strFlag, 1);
DDX_Text(pDX, IDC_PRESS, m_strPress);
DDV_MaxChars(pDX, m_strPress, 20);
DDX_Text(pDX, IDC_PRESSDATE, m_strPressDate);
DDV_MaxChars(pDX, m_strPressDate, 10);
//}}AFX_DATA_MAP
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询