yhlistctrl.h

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

H
60
字号
#if !defined(AFX_YHLISTCTRL_H__E066489C_6FA1_404B_AACC_F30F7BF9CDBB__INCLUDED_)
#define AFX_YHLISTCTRL_H__E066489C_6FA1_404B_AACC_F30F7BF9CDBB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// YHListCtrl.h : header file
//
#include "YHEditCell.h"
#define IDC_EDIT_CELL   2003

enum CELL_TYPE { CT_NULL/* Read Only */, CT_EDIT, 
                 CT_LISTBOX, CT_COMBOBOX };  // Base on column
/////////////////////////////////////////////////////////////////////////////
// CYHListCtrl window

class CYHListCtrl : public CListCtrl
{
// Construction
public:
	CYHListCtrl();

// Attributes
public:
	long maxid;

// Operations
public:
	CEdit* EditSubItem( int nItem, int nSubItem );

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CYHListCtrl)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CYHListCtrl();

	// Generated message map functions
protected:
	//{{AFX_MSG(CYHListCtrl)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
    int InsertItemEx( int nItem );  // Extended function of insert item
};

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

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

#endif // !defined(AFX_YHLISTCTRL_H__1D5C8711_2F0C_490E_8595_F9886686D683__INCLUDED_)

⌨️ 快捷键说明

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