ListCtrlBase.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:
P2P编程
开发平台:
Visual C++
- #if !defined(AFX_LISTCTRLBASE_H__B29B16B3_13B1_495C_91AF_DF5AA7F52994__INCLUDED_)
- #define AFX_LISTCTRLBASE_H__B29B16B3_13B1_495C_91AF_DF5AA7F52994__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ListCtrlBase.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CListCtrlBase window
- class CListCtrlBase : public CListCtrl
- {
- // Construction
- public:
- CListCtrlBase();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CListCtrlBase)
- //}}AFX_VIRTUAL
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- // Implementation
- public:
- virtual ~CListCtrlBase();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CListCtrlBase)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
- afx_msg void MeasureItem ( LPMEASUREITEMSTRUCT lpMeasureItemStruct);
- afx_msg LRESULT OnSetTextColor(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnSetTextBkColor(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnSetBkColor(WPARAM wParam, LPARAM lParam);
- afx_msg LRESULT OnSetImageList(WPARAM wParam, LPARAM lParam);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnPaint();
- afx_msg void OnSetFocus(CWnd* pOldWnd);
- afx_msg void OnKillFocus(CWnd* pNewWnd);
- DECLARE_MESSAGE_MAP()
- private:
- LPCTSTR MakeShortString(CDC* pDC, LPCTSTR lpszLong, int nColumnLen, int nOffset);
- void RepaintSelectedItems();
- BOOL GetFullRowSel();
- BOOL m_bFullRowSel;
- UINT m_nTabFlag;
- BOOL m_bClientWidthSel;
- int m_cxClient;
- int m_cxStateImageOffset;
- COLORREF m_clrText;
- COLORREF m_clrTextBk;
- COLORREF m_clrBkgnd;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_LISTCTRLBASE_H__B29B16B3_13B1_495C_91AF_DF5AA7F52994__INCLUDED_)