📄 socialisepersondlg.h
字号:
#pragma once //这些代码由王昌栋编写,未经允许,不得随便改动,如有问题欢迎提出!
#include "Person.h"
#include "SocialisePersonAddDlg.h"
#include "SocialisePersonUpdateDlg.h"
#include "SocialisePersonKindDlg.h"
#include "SocialisePersonSearchDlg.h"
#include "SocialisePersonDetailDlg.h"
#include "afxcmn.h"
//打印
#include "PreParentDlg.h"
// CSocialisePersonDlg 对话框
class CSocialisePersonDlg : public CDialog
{
DECLARE_DYNAMIC(CSocialisePersonDlg)
public:
CSocialisePersonDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CSocialisePersonDlg();
// 对话框数据
enum { IDD = IDD_SOCIALISE_PERSON_DLG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
void ViewAll();
void Kind();
void Main();
void Add();
void Update();
void Delete();
void Search();
void Print();
afx_msg void OnBnClickedSocialisePersonAllBt();
public:
afx_msg void OnBnClickedPersonKindBt();
public:
afx_msg void OnBnClickedSocialisePersonMainBt();
public:
afx_msg void OnBnClickedSocialisePersonAddBt();
public:
afx_msg void OnBnClickedSocialisePersonUpdateBt();
public:
afx_msg void OnBnClickedSocialisePersonDeleteBt();
public:
afx_msg void OnBnClickedSocialisePersonSearchBt();
public:
CPerson m_pSet;
public:
virtual BOOL OnInitDialog();
public:
CListCtrl m_cPersonListCtrl;
public:
int m_iPersonAmount;
public:
afx_msg void OnBnClickedSocialisePersonPrintBt();
//打印
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 OnHdnItemclickSocialisePersonList(NMHDR *pNMHDR, LRESULT *pResult);
public:
afx_msg void OnClose();
public:
afx_msg void OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/);
public:
afx_msg void OnTimer(UINT_PTR nIDEvent);
public:
afx_msg void OnPersonAll();
afx_msg void OnPersonKind();
afx_msg void OnPersonMain();
afx_msg void OnPersonAdd();
afx_msg void OnPersonUpdate();
afx_msg void OnPersonDelete();
afx_msg void OnPersonSearch();
afx_msg void OnPersonPrint();
public:
afx_msg void OnUpdatePersonMain(CCmdUI *pCmdUI);
afx_msg void OnUpdatePersonUpdate(CCmdUI *pCmdUI);
afx_msg void OnUpdatePersonDelete(CCmdUI *pCmdUI);
afx_msg void OnUpdatePersonPrint(CCmdUI *pCmdUI);
bool m_bItemClick;
CButton m_cUpdateBt;
CButton m_cDeleteBt;
CButton m_cPrintBt;
CButton m_cMainBt;
public:
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -