emdeditcell.h

来自「一个实用的GIS系统的系统维护模块」· C头文件 代码 · 共 74 行

H
74
字号
#if !defined(AFX_EDITCELL_H__70CA45A4_E25E_4508_AAA1_230049688B9A__INCLUDED_)
#define AFX_EDITCELL_H__70CA45A4_E25E_4508_AAA1_230049688B9A__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CEMDEditCell window

class CEMDListCtrl;

class CEMDEditCell : public CEdit
{
// Construction
public:
	CEMDEditCell( CEMDListCtrl* pListCtrl, 
                  int nItem, int nSubItem, CString csInitText,bool editDoubleLimitged=false);

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEMDEditCell)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL
public:
    int g;
	BOOL   bLimitedToDouble;
	double GetDoubleValue();
	void   SetDoubleValue (double val);

// Implementation
public:
	virtual ~CEMDEditCell();

	// Generated message map functions
protected:
	//{{AFX_MSG(CEMDEditCell)
	afx_msg void OnKillFocus(CWnd* pNewWnd);
    afx_msg void OnNcDestroy();
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

private:
	
    CEMDListCtrl* m_pListCtrl;
    int  m_nItem;
    int  m_nSubItem;
    bool m_bUndo;
	int count;
    CString m_csInitText;    // Initialize text

private:
    void SetListItemText();  // Set list item text
};

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

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

#endif // !defined(AFX_EDITCELL_H__70CA45A4_E25E_4508_AAA1_230049688B9A__INCLUDED_)

⌨️ 快捷键说明

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