GridListCtrl.h
资源名称:GridList.zip [点击查看]
上传用户:zdjx198
上传日期:2007-01-02
资源大小:95k
文件大小:2k
源码类别:
ListView/ListBox
开发平台:
Visual C++
- #if !defined(AFX_GRIDLISTCTRL_H__92CA5999_9434_11D1_88D5_444553540000__INCLUDED_)
- #define AFX_GRIDLISTCTRL_H__92CA5999_9434_11D1_88D5_444553540000__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // GridListCtrl.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CGridListCtrl window
- class CGridListCtrl : public CListCtrl
- {
- // Construction
- public:
- CGridListCtrl();
- // Attributes
- public:
- // The current subitem or column number which is order based.
- int m_CurSubItem;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CGridListCtrl)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void MakeColumnVisible(int nCol);
- BOOL PositionControl( CWnd * pWnd, int iItem, int iSubItem );
- BOOL PrepareControl(WORD wParseStyle);
- virtual ~CGridListCtrl();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CGridListCtrl)
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- //}}AFX_MSG
- afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);
- WORD m_wStyle;
- DECLARE_MESSAGE_MAP()
- private:
- int IndexToOrder( int iIndex );
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_GRIDLISTCTRL_H__92CA5999_9434_11D1_88D5_444553540000__INCLUDED_)