subclassdialog.h

来自「VC程序设计技巧与实例(2)关于窗口和桌面系统、文件和系统操作、消息影射的原代码」· C头文件 代码 · 共 52 行

H
52
字号
#if !defined(AFX_SUBCLASSDIALOG_H__B77C50BE_B0CC_4CBF_8857_B5BCDEC3252D__INCLUDED_)
#define AFX_SUBCLASSDIALOG_H__B77C50BE_B0CC_4CBF_8857_B5BCDEC3252D__INCLUDED_

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

#include "SubEdit.h"
/////////////////////////////////////////////////////////////////////////////
// CSubClassDialog dialog

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

// Dialog Data
	//{{AFX_DATA(CSubClassDialog)
	enum { IDD = IDD_TEST_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
	CSubEdit    m_Edit;
	CSubEdit    m_Edit2;


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSubClassDialog)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSubClassDialog)
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SUBCLASSDIALOG_H__B77C50BE_B0CC_4CBF_8857_B5BCDEC3252D__INCLUDED_)

⌨️ 快捷键说明

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