studentinfomation.h
来自「用vc实现的连接sql数据库程序」· C头文件 代码 · 共 82 行
H
82 行
#if !defined(AFX_STUDENTINFOMATION_H__46ADE852_C306_42F2_B0AA_5AB7A666B696__INCLUDED_)
#define AFX_STUDENTINFOMATION_H__46ADE852_C306_42F2_B0AA_5AB7A666B696__INCLUDED_
#include "数据库作业View.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StudentInfomation.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CStudentInfomation dialog
struct studentinfo
{
CString no;
CString name;
int age;
CString sex;
CString dept;
};
struct classinfo
{
int no;
CString name;
int prve;
int cedit;
};
struct scinfo
{
CString sno;
int cno;
int grade;
};
class CStudentInfomation : public CDialog
{
// Construction
public:
CString m_sWindowTitle;
void SetDate(studentinfo data);
BOOL GetDateStatus() const;
studentinfo GetDate() const;
BOOL bIsNew;
CStudentInfomation(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CStudentInfomation)
enum { IDD = IDD_DIALOG1 };
CString m_sno;
CString m_sname;
int m_sage;
CString m_ssex;
CString m_sdept;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStudentInfomation)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
BOOL m_bDateStatus;
studentinfo m_date;
// Generated message map functions
//{{AFX_MSG(CStudentInfomation)
virtual void OnOK();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL CheckDate();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STUDENTINFOMATION_H__46ADE852_C306_42F2_B0AA_5AB7A666B696__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?