DlgBookAdd.cpp
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- // DlgBookAdd.cpp : implementation file
- //
- #include "stdafx.h"
- #include "BookAdmin.h"
- #include "DlgBookAdd.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // DlgBookAdd dialog
- DlgBookAdd::DlgBookAdd(CWnd* pParent /*=NULL*/)
- : CDialog(DlgBookAdd::IDD, pParent)
- {
- //{{AFX_DATA_INIT(DlgBookAdd)
- m_bookisbn = 0;
- m_bookname = _T("");
- m_bookauthor = _T("");
- m_bIsOk=FALSE;
- //}}AFX_DATA_INIT
- }
- void DlgBookAdd::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(DlgBookAdd)
- DDX_Text(pDX, IDC_EDIT1, m_bookisbn);
- DDX_Text(pDX, IDC_EDIT2, m_bookname);
- DDX_Text(pDX, IDC_EDIT3, m_bookauthor);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(DlgBookAdd, CDialog)
- //{{AFX_MSG_MAP(DlgBookAdd)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // DlgBookAdd message handlers
- void DlgBookAdd::OnOK()
- {
- // TODO: Add extra validation here
- this->UpdateData(TRUE);
- m_bIsOk=TRUE;
- CDialog::OnOK();
- }
- void DlgBookAdd::OnCancel()
- {
- // TODO: Add extra cleanup here
- m_bIsOk=FALSE;
- CDialog::OnCancel();
- }