reportclass.h
来自「内容包括从VC++的基本范例到项目开发的许多典型的例子。是VC++初学者不可多得」· C头文件 代码 · 共 67 行
H
67 行
#if !defined(AFX_REPORTCLASS_H__15AB9C73_26DE_4452_B7E8_6CBCD4FC6F61__INCLUDED_)
#define AFX_REPORTCLASS_H__15AB9C73_26DE_4452_B7E8_6CBCD4FC6F61__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ReportClass.h : header file
//
#include "MyRecordSet.h" //添加的
/////////////////////////////////////////////////////////////////////////////
// CReportClass dialog
class CReportClass : public CDialog
{
public:
//添加的数据集
MyRecordSet m_pRS;
CString m_strClassID;
protected:
//计算统计班级成绩函数
void Calculate(CString classID);
public:
CReportClass(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CReportClass)
enum { IDD = IDD_REPORTCLASS_DIALOG };
int m_n100;
int m_n50;
int m_n60;
int m_n70;
int m_n80;
int m_n90;
float m_fAvg;
int m_nCount;
float m_fDelta;
float m_fHigh;
float m_fLow;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CReportClass)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CReportClass)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_REPORTCLASS_H__15AB9C73_26DE_4452_B7E8_6CBCD4FC6F61__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?