⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reportdlg.h

📁 内容包括从VC++的基本范例到项目开发的许多典型的例子。是VC++初学者不可多得的好资料
💻 H
字号:
#if !defined(AFX_REPORTDLG_H__F364B25C_CF93_4816_B5DB_320C35F8542F__INCLUDED_)
#define AFX_REPORTDLG_H__F364B25C_CF93_4816_B5DB_320C35F8542F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ReportDlg.h : header file
//

//添加的
#include "MyRecordSet.h"

/////////////////////////////////////////////////////////////////////////////
// CReportDlg dialog

class CReportDlg : public CDialog
{

public:
	//添加的数据集
	MyRecordSet	m_pRS;

protected:
	//添加的
	CString		m_strSQL;

	//树图标
	CImageList	m_TreeBootImage;

	//添加树结点和计算结果
	void	AddTreeNodes();
	void	Calculate(CString courseID);

	//根结点
	HTREEITEM	hRootItem;
	//如果该值[strValue],在指定结点的子结点中不存在,则添加一个为此值的结点;
	HTREEITEM	AddDistinctNode(HTREEITEM hParent,CString strValue);

public:
	CReportDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CReportDlg)
	enum { IDD = IDD_REPORTDLG_DIALOG };
	CTreeCtrl	m_ctrlTree;
	CString	m_strName;
	float	m_fLow;
	float	m_fHigh;
	float	m_fDelta;
	float	m_fCredit;
	CString	m_strCollege;
	float	m_fAvg;
	int		m_n90;
	int		m_n80;
	int		m_n70;
	int		m_n60;
	int		m_n50;
	int		m_n100;
	int		m_nCount;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CReportDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CReportDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_REPORTDLG_H__F364B25C_CF93_4816_B5DB_320C35F8542F__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -