yheditcell.h

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

H
69
字号
#if !defined(AFX_YHEDITCELL_H__51537E65_4E1B_4D42_B207_A574D19264B7__INCLUDED_)
#define AFX_YHEDITCELL_H__51537E65_4E1B_4D42_B207_A574D19264B7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// YHEditCell.h : header file
//
class CXListCtrl;
/////////////////////////////////////////////////////////////////////////////
// CYHEditCell window

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

// Operations
public:

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

// Implementation
public:
	virtual ~CYHEditCell();

	// Generated message map functions
protected:
	//{{AFX_MSG(CYHEditCell)
	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:
    CXListCtrl* m_userlist;
    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_YHEDITCELL_H__3A01BAED_0034_4ECA_ACEA_CEEC49356AC7__INCLUDED_)

⌨️ 快捷键说明

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