📄 studentwinview.h
字号:
// studentwinView.h : interface of the CStudentwinView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_STUDENTWINVIEW_H__366F8353_47C2_4A7B_AD8D_184DAE7E2E94__INCLUDED_)
#define AFX_STUDENTWINVIEW_H__366F8353_47C2_4A7B_AD8D_184DAE7E2E94__INCLUDED_
#include "doubledlg.h"
#include "student.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "finddlg.h"
static int much=0;
static int cursor=0;
class CStudentwinView : public CFormView
{
protected: // create from serialization only
CStudentwinView();
DECLARE_DYNCREATE(CStudentwinView)
public:
Cstudent *studentall[100];
Cdoubledlg * m_dlg;
//{{AFX_DATA(CStudentwinView)
enum { IDD = IDD_STUDENTWIN_FORM };
CButton m_bshezhi;
CEdit m_editkecheng;
CEdit m_editid;
CStatic m_olddata;
CButton m_addbutton;
CEdit m_editscore4;
CEdit m_editscore3;
CEdit m_editscore2;
CEdit m_editscore1;
CEdit m_editfen4;
CEdit m_editfen3;
CEdit m_editfen2;
CEdit m_editfen1;
CComboBox m_lesson;
CEdit m_editfenlesson;
CEdit m_editscorelesson;
CButton m_savemade;
CButton m_dropmade;
CComboBox m_yue;
CComboBox m_sex;
CComboBox m_date;
CString m_addr;
int m_fen1;
int m_fen2;
int m_fen3;
int m_fen4;
int m_id;
CString m_name;
CString m_score1;
CString m_score2;
CString m_score3;
CString m_score4;
CString m_scorelesson;
int m_year;
int m_intyue;
int m_intdate;
int m_intsex;
int m_fenlesson;
long m_tel;
CString m_kecheng;
//}}AFX_DATA
// Attributes
public:
CStudentwinDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStudentwinView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
virtual void OnDraw(CDC* pDC);
virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
//}}AFX_VIRTUAL
// Implementation
public:
bool drawfirst;
int kechengcouter;
void printhead(CDC*pDC,CPrintInfo*pInfo);
void printfoot(CDC*pDC);
Cstudent* studentoldall[100];
bool firstcap;
bool open;
CRect doublerect;
UINT m_ntimer2;
bool move;
void setolddata();
void setstatusbar();
bool olddatain1;
bool olddatain;
HCURSOR cur;
int datanumber;
UINT arstyle;
CString filepath;
void setporty(UINT style);
void adddata();
int datacouter;
UINT index;
void fileinout();
UINT style;
Cstudent* oldstudent;
void getstudent();
Clesson lesson[16];
virtual ~CStudentwinView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CStudentwinView)
afx_msg void Onadd();
afx_msg void Ondelete();
afx_msg void Ondropmade();
afx_msg void Oninsert();
afx_msg void Onlast();
afx_msg void Onfirst();
afx_msg void Onmade();
afx_msg void Onnext();
afx_msg void Onpre();
afx_msg void Onsavemade();
afx_msg void OnEditchangelesson();
afx_msg void OnSelchangelesson();
afx_msg void OnKillfocusscorelesson();
afx_msg void OnKillfocusfenlesson();
afx_msg void OnChangescorelesson();
afx_msg void OnDropdownlesson();
afx_msg void OnSetfocuslesson();
afx_msg void OnChangescore1();
afx_msg void OnChangescore2();
afx_msg void OnChangescore3();
afx_msg void OnChangescore4();
afx_msg void OnKillfocusfen1();
afx_msg void OnKillfocusfen2();
afx_msg void OnKillfocusfen3();
afx_msg void OnKillfocusfen4();
afx_msg void OnChangeid();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void Onolddata();
afx_msg void Onsingle();
afx_msg void OnClose();
afx_msg void Onidfind();
afx_msg void Onlessonfind();
afx_msg void Onnamefind();
afx_msg void Onoldfind();
afx_msg void Onyearfinddown();
afx_msg void Onyearfindup();
afx_msg void Onzhifang();
afx_msg void Onaddrfind();
afx_msg void Onbingzhuang();
afx_msg void Ondouble();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnStatichelp();
afx_msg void OnAutohelp();
afx_msg void OnFenhui();
afx_msg void OnIdhui();
afx_msg void Onshezhi();
afx_msg void Onnewshezhi();
afx_msg void OnKillfocusid();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in studentwinView.cpp
inline CStudentwinDoc* CStudentwinView::GetDocument()
{ return (CStudentwinDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STUDENTWINVIEW_H__366F8353_47C2_4A7B_AD8D_184DAE7E2E94__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -