customcollectiondemodlg.h

来自「CustomCollectionDemo完整原程序代码」· C头文件 代码 · 共 47 行

H
47
字号
// CustomCollectionDemoDlg.h : header file
//

#pragma once
#include "afxwin.h"

#include "Programmer.h"
#include "afxcmn.h"

// CCustomCollectionDemoDlg dialog
class CCustomCollectionDemoDlg : public CDialog
{
// Construction
public:
	CCustomCollectionDemoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_CUSTOMCOLLECTIONDEMO_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;
	gcroot<ProgrammerCollection*> m_collProgrammers;
  void RefreshList();
  	
	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CString m_strFullName;
	int m_iAnnualSalary;
	int m_iExperienceInYears;
	afx_msg void OnBnClickedAdd();
	afx_msg void OnBnClickedSort();
	afx_msg void OnBnClickedSortBySal();
	afx_msg void OnBnClickedSortByExp();
  CListCtrl m_lstProgrammers;
  afx_msg void OnHdnItemclickList1(NMHDR *pNMHDR, LRESULT *pResult);
  afx_msg void OnBnClickedCancel2();
};

⌨️ 快捷键说明

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