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

📄 celledit.h

📁 ADO数据库编程
💻 H
字号:
#if !defined(AFX_CELLEDIT_H__8B09EA61_79A3_11D4_ACD5_00104B12129F__INCLUDED_)
#define AFX_CELLEDIT_H__8B09EA61_79A3_11D4_ACD5_00104B12129F__INCLUDED_

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

#define GVN_SECLOL				0
#define GVN_ENDLABELEDIT		1
#define GVN_CLICK               2
#define GVN_DBCLICK             3

/////////////////////////////////////////////////////////////////////////////
// CCellEdit window

class CCellEdit : public CEdit
{
// Construction
public:
	CCellEdit(CWnd* pParent, CRect& rect, UINT nID, int nRow, int nColumn, CString strText, bool bEditable = true);

// Attributes
public:

private:
	int m_nRow;
	int m_nColumn;
	bool m_bEditable;
	CString m_strText;

// Operations
public:

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

// Implementation
public:
	virtual ~CCellEdit();
	void CloseEdit();

	// Generated message map functions
protected:
	//{{AFX_MSG(CCellEdit)
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg UINT OnGetDlgCode();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

typedef struct tagNMHDR32{
    HWND hwndFrom; 
    UINT idFrom; 
    UINT code; 
	int nRow;
	int nCol;
	CString strText;
} NMHDR32; 


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

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

#endif // !defined(AFX_CELLEDIT_H__8B09EA61_79A3_11D4_ACD5_00104B12129F__INCLUDED_)

⌨️ 快捷键说明

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