listviewex.h

来自「使用环境VC++ 6.0」· C头文件 代码 · 共 49 行

H
49
字号
// ListViewExt.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CListViewEx view

class CListViewEx : public CListView
{
protected:
	CListViewEx();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CListViewEx)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CListViewEx();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

    virtual LPCSTR  GetColumnText(int nColumn, LPARAM lParam) = 0;
    virtual void    DrawItem(LPDRAWITEMSTRUCT lpDrawItem);

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

private:
    void    DrawItemColumn(HDC hdc, LPCTSTR lpsz, LPRECT prcClip);
    BOOL    CalcStringEllipsis(HDC hdc, LPTSTR lpszString, int cchMax, UINT uColWidth);
};

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

⌨️ 快捷键说明

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