图书管理系统报告lxy内容摘要:

////////////////////////////////////////////////// // Cdengludlg message handlers void Cdengludlg::OnOK() { // TODO: Add extra validation here Cdengluset1 m_set。 Cdengludlg dlg。 UpdateData()。 if(()) ()。 (yonghuming=39。 %s39。 AND mima=39。 %s39。 ,m_yonghuming,m_mima)。 ()。 if(()==0) { MessageBox(欢迎登录 )。 m_m=m_yonghuming。 ()。 CDialog::OnOK()。 CDialog::OnOK()。 } else MessageBox(用户名或密码错误 )。 ()。 } // : implementation file // if !defined(AFX_GUANLIYUAN_H__7C45640A_DA6D_458C_8C62_1DA4C76917B3__INCLUDED_) define AFX_GUANLIYUAN_H__7C45640A_DA6D_458C_8C62_1DA4C76917B3__INCLUDED_ if _MSC_VER 1000 pragma once endif // _MSC_VER 1000 // : header file // ///////////////////////////////////////////////////////////////////////////// // Cguanliyuan dialog class Cguanliyuan : public CDialog { // Construction public: Cguanliyuan(CWnd* pParent = NULL)。 // standard constructor // Dialog Data //{{AFX_DATA(Cguanliyuan) enum { IDD = IDD_guanliyuandengluDIALOG1 }。 int m_guanliyuan。 int m_kouling。 //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(Cguanliyuan) protected: virtual void DoDataExchange(CDataExchange* pDX)。 // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(Cguanliyuan) virtual void OnOK()。 //}}AFX_MSG DECLARE_MESSAGE_MAP() }。 //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. endif // !defined(AFX_GUANLIYUAN_H__7C45640A_DA6D_458C_8C62_1DA4C76917B3__INCLUDED_) include include 图书管理系统 .h include ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。 endif ///////////////////////////////////////////////////////////////////////////// // Cguanliyuan dialog Cguanliyuan::Cguanliyuan(CWnd* pParent /*=NULL*/) : CDialog(Cguanliyuan::IDD, pParent) { //{{AFX_DATA_INIT(Cguanliyuan) m_guanliyuan = 0。 m_kouling = 0。 //}}AFX_DATA_INIT } void Cguanliyuan::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(Cguanliyuan) DDX_Text(pDX, IDC_EDIT1, m_guanliyuan)。 DDX_Text(pDX, IDC_EDIT2, m_kouling)。 //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(Cguanliyuan, CDialog) //{{AFX_MSG_MAP(Cguanliyuan) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // Cguanliyuan message handlers void Cguanliyuan::OnOK() { // TODO: Add extra validation here UpdateData()。 if(m_guanliyuan==100) { if(m_kouling==100) MessageBox(欢迎登录 )。 else MessageBox(名称或密码错误 )。 } else MessageBox(名称或密码错误 )。 CDialog::OnOK()。 } 读者信息模块 if !defined(AFX_DUZHEXINXI_H__03197AC2_1365_4431_B601_4529F085A97D__INCLUDED_) define AFX_DUZHEXINXI_H__03197AC2_1365_4431_B601_4529F085A97D__INCLUDED_ if _MSC_VER 1000 pragma once endif // _MSC_VER 1000 // : header file // ///////////////////////////////////////////////////////////////////////////// // Cduzhexinxi dialog class Cduzhexinxi : public CDialog { // Construction public: Cduzhexinxi(CWnd* pParent = NULL)。 // standard constructor // Dialog Data //{{AFX_DATA(Cduzhexinxi) enum { IDD = IDD_duzhexinxiDIALOG1 }。 CString m_yonghuming。 CString m_xingming。 CString m_shoujihao。 //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(Cduzhexinxi) protected: virtual void DoDataExchange(CDataExchange* pDX)。 // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(Cduzhexinxi) virtual BOOL OnInitDialog()。 afx_msg void Onxuanshu()。 //}}AFX_MSG DECLARE_MESSAGE_MAP() }。 //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. endif // !defined(AFX_DUZHEXINXI_H__03197AC2_1365_4431_B601_4529F085A97D__INCLUDED_) include include 图书管理系统 .h include include include include ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。 endif ///////////////////////////////////////////////////////////////////////////// // Cduzhexinxi dialog extern CString m_m。 Cduzhexinxi::Cduzhexinxi(CWnd* pParent /*=NULL*/) : CDialog(Cduzhexinxi::IDD, pParent) { //{{AFX_DATA_INIT(Cduzhexinxi) m_yonghuming = _T()。 m_xingming = _T()。 m_shoujihao = _T()。 //}}AFX_DATA_INIT } void Cduzhexinxi::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX)。 //{{AFX_DATA_MAP(Cduzhexinxi) DDX_Text(pDX, IDC_EDIT1, m_yonghuming)。 DDX_Text(pDX, IDC_EDIT3, m_xingming)。 DDX_Text(pDX, IDC_EDIT4, m_shoujihao)。 //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(Cduzhexinxi, CDialog) //{{AFX_MSG_MAP(Cduzhexinxi) ON_BN_CLICKED(IDxuanshu, Onxuanshu) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // Cduzhexinxi message handlers BOOL Cduzhexinxi::OnInitDialog() { CDialog::OnInitDialog()。 // TODO: Add extra initialization here Cduzhexinxiset m_set。 if(()) ()。 (yonghuming=39。 %s39。 ,m_m)。 ()。 if(!()) { m_yonghuming=m_m。 m_xingming=。 m_shoujihao=。 UpdateData(false)。 } ()。 return TRUE。 // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void Cduzhexinxi::Onxuanshu() { // TODO: Add your control notification handler。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。