ex040205dlg.h
来自「深入浅出Visual C++入门进阶与应用实例 随书光盘 作者 何志丹」· C头文件 代码 · 共 68 行
H
68 行
// Ex040205Dlg.h : header file
//
#if !defined(AFX_EX040205DLG_H__FE36EEF1_1FF6_457E_862C_93D4FC6CCD28__INCLUDED_)
#define AFX_EX040205DLG_H__FE36EEF1_1FF6_457E_862C_93D4FC6CCD28__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CEx040205Dlg dialog
#include "Afxtempl.h"
class CCheckButton
{
public:
UINT ID ;
CString m_strCaption ;
};
class CEx040205Dlg : public CDialog
{
// Construction
public:
CEx040205Dlg(CWnd* pParent = NULL); // standard constructor
void AddButton(UINT uID , CString strCaption);
// Dialog Data
//{{AFX_DATA(CEx040205Dlg)
enum { IDD = IDD_EX040205_DIALOG };
CString m_strLove;
//}}AFX_DATA
int FindLove(CString strLove);
bool DeleteLove(CString strLove);
bool AddLove(CString strLove);
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEx040205Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CEx040205Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnPutIn();
afx_msg void OnChecks(UINT uID);
afx_msg void OnChangeLove();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CArray<CCheckButton,CCheckButton> m_Buttons ;
static UINT s_IDFirst;//起始ID
static UINT s_IDLast ;//终止ID
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EX040205DLG_H__FE36EEF1_1FF6_457E_862C_93D4FC6CCD28__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?