myedit.h

来自「在Visual C++中使用MSFlexGrid控件的几点改进」· C头文件 代码 · 共 63 行

H
63
字号
#if !defined(AFX_MYEDIT_H__8D7C8924_AAE0_4E79_94B3_81C27CB475A0__INCLUDED_)
#define AFX_MYEDIT_H__8D7C8924_AAE0_4E79_94B3_81C27CB475A0__INCLUDED_

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

//定义消息
#define CELL_DATA_CHANGED WM_USER+1
#define CELL_DB_CLICKED WM_USER+2
//#define IDM_LIST 2000

extern CString CellStr;
//extern CFont g_font;
/////////////////////////////////////////////////////////////////////////////
// CMyEdit window

class CMyEdit : public CEdit
{
// Construction
public:
	CMyEdit();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyEdit)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMyEdit();

	// Generated message map functions
protected:
	//{{AFX_MSG(CMyEdit)
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	//}}AFX_MSG

	//CListBox* m_pList;

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_MYEDIT_H__8D7C8924_AAE0_4E79_94B3_81C27CB475A0__INCLUDED_)

⌨️ 快捷键说明

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