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

📄 listctrlbase.h

📁 用户管理系统
💻 H
字号:
/*########################################################################
	【文件名】: 	ListCtrlBase.h
	【名  称】:		DataWin 封装类.
	【版  本】:		1.0
	【作  者】:		梁均源
	【E-mail】:		KelvinSpace@citiz.net

  注意:必需保留以上信息!!!
  ########################################################################*/
#if !defined(AFX_LISTCTRLBASE_H__7ED41D34_96CE_43E0_BB2F_409B55BE6CCC__INCLUDED_)
#define AFX_LISTCTRLBASE_H__7ED41D34_96CE_43E0_BB2F_409B55BE6CCC__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CListCtrlBase window
//ListDoc使用ListCtrlBase做为列表
//所有取代ListDoc列表的扩展类
//必需重载以下函数
class CListCtrlBase : public CListCtrl
{
// Construction
public:
	CListCtrlBase();
	virtual int InsertColumn(int nCol, LPCTSTR lpszColumnHeading, int nFormat = LVCFMT_LEFT, int nWidth = -1, int nSubItem = -1);
	virtual BOOL DeleteAllItems(); // Delete all items.
    virtual BOOL SetItemText(int nItem, int nSubItem, LPCTSTR lpszText);
    virtual int  InsertItem( int nItem, LPCTSTR lpszItem );
    virtual BOOL DeleteItem(int iItem);

	int GetSelected();
    int GetSubItem(LPCSTR pItemName);
    BOOL UnSelectItem(int nItem);
    BOOL MoveToBottom(int nItem);
    BOOL MoveToTop(int nItem);
    BOOL SelectItem(int nItem);
    BOOL MoveUp(int nItem, int nCount);
    BOOL MoveDown(int nItem, int nCount);
 
// Attributes
public:

// Operations
public:

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

// Implementation
public:
	virtual ~CListCtrlBase();

	// Generated message map functions
protected:
	//{{AFX_MSG(CListCtrlBase)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_LISTCTRLBASE_H__7ED41D34_96CE_43E0_BB2F_409B55BE6CCC__INCLUDED_)

⌨️ 快捷键说明

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