studyplandlg.h
来自「这是一个学生信息管理系统」· C头文件 代码 · 共 92 行
H
92 行
#pragma once //这些代码由王昌栋编写,未经允许,不得随便改动,如有问题欢迎提出!
#include "StudyPlan.h"
#include "afxcmn.h"
#include "StudyPlanAddDlg.h"
#include "StudyPlanUpdateDlg.h"
#include "StudyPlanSearchDlg.h"
#include "StudyPlanTypeDlg.h"
//打印
#include "PreParentDlg.h"
// CStudyPlanDlg 对话框
class CStudyPlanDlg : public CDialog
{
DECLARE_DYNAMIC(CStudyPlanDlg)
public:
CStudyPlanDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CStudyPlanDlg();
// 对话框数据
enum { IDD = IDD_STUDY_PLAN_DLG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
int m_iPlanAmount;
CStudyPlan m_pSet;
//显示所有
void ViewAll();
void Kind();
void Add();
void Update();
void Delete();
void Search();
void Print();
public:
afx_msg void OnBnClickedStudyPlanAllBt();
public:
CListCtrl m_cStudyPlanListCtrl;
public:
afx_msg void OnBnClickedStudyplanKindBt();
public:
afx_msg void OnBnClickedStudyPlanAddBt();
public:
afx_msg void OnBnClickedStudyPlanUpdateBt();
public:
afx_msg void OnBnClickedStudyPlanDeleteBt();
public:
afx_msg void OnBnClickedStudyPlanSearchBt();
public:
virtual BOOL OnInitDialog();
public:
afx_msg void OnBnClickedStudyPlanPrintBt();
//打印
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnPrint();
static void DrawInfo(CDC &memDC, PRNINFO PrnInfo);
HICON m_hIcon;
public:
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
COLORREF m_backcolor;
CBrush m_brush;
public:
afx_msg void OnHdnItemclickStudyPlanList(NMHDR *pNMHDR, LRESULT *pResult);
public:
afx_msg void OnStudyplanAll();
afx_msg void OnStudyplanKind();
afx_msg void OnStudyplanAdd();
afx_msg void OnStudyplanUpdate();
afx_msg void OnStudyplanDelete();
afx_msg void OnStudyplanSearch();
afx_msg void OnStudyplanPrint();
public:
afx_msg void OnUpdatePlanUpdate(CCmdUI *pCmdUI);
afx_msg void OnUpdatePlanDelete(CCmdUI *pCmdUI);
afx_msg void OnUpdatePlanPrint(CCmdUI *pCmdUI);
bool m_bItemClick;
public:
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnClose();
CButton m_cUpdateBt;
CButton m_cDeleteBt;
CButton m_cPrintBt;
void OnContextMenu(CWnd* pWnd, CPoint point);
public:
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?