⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gfxinedit.h

📁 一个多线程的网络数据采集系统(客户端)
💻 H
字号:
#if !defined(AFX_GFXINEDIT_H__31F5CEAD_E5CA_11D1_86E7_000000000000__INCLUDED_)
#define AFX_GFXINEDIT_H__31F5CEAD_E5CA_11D1_86E7_000000000000__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CGfxInEdit window
/**
*列表单元编辑控件类
**/
class CGfxInEdit : public CRichEditCtrl//CEdit
{
// Construction
public:
	/**
	*列表单元编辑控件类构造函数
	**/
	CGfxInEdit(int iItem, int iSubItem, CString sInitText, bool _bMouseSelect = true);

// Attributes
public:
	bool bMouseSelect;

// Operations
public:

private:
	int m_iItem;
	int m_iSubItem;
	CString m_sInitText;
	BOOL m_bESC;// To indicate whether ESC key was pressed

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

// Implementation
public:
	/**
	*若当前被编辑列表单元被修改,通知列表控件处理此修改
	**/
	void ProcessSelect();
	/**
	*列表单元编辑控件类析构函数
	**/
	virtual ~CGfxInEdit();

	// Generated message map functions
protected:
	//{{AFX_MSG(CGfxInEdit)
	/**
	*响应WM_CHAR处理输入
	**/
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	/**
	*当编辑控件失去焦点时的处理
	**/
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnNcDestroy();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	afx_msg void OnEditCopy();
	afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
	afx_msg void OnEditCut();
	afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
	afx_msg void OnEditPaste();
	afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
	afx_msg void OnEditUndo();
	afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
	bool UpdateCopy();
	bool UpdatePaste();
	bool UpdateCut();
	bool UpdateUndo();

	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GFXINEDIT_H__31F5CEAD_E5CA_11D1_86E7_000000000000__INCLUDED_)

⌨️ 快捷键说明

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