MyHeaderCtrl.h
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- #if !defined(AFX_MYHEADERCTRL_H__D68EFF1F_2C3A_4C49_8723_25D53C62D030__INCLUDED_)
- #define AFX_MYHEADERCTRL_H__D68EFF1F_2C3A_4C49_8723_25D53C62D030__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MyHeaderCtrl.h : header file
- //
- #ifndef __AFXTEMPL_H__
- #include "afxtempl.h"
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMyHeaderCtrl window
- class CMyHeaderCtrl : public CHeaderCtrl
- {
- // Construction
- public:
- CMyHeaderCtrl();
- // Attributes
- public:
- int GetSortColumn () const;
- BOOL IsAscending () const;
- int GetColumnState (int iColumn) const;
- // Returns: 0 - not not sorted, -1 - descending, 1 - ascending
- BOOL IsMultipleSort () const{ return m_bMultipleSort;}
- // Operations
- public:
- CMap <int,int,int,int> m_mapColumnsStatus; // -1, 1, 0
- BOOL m_bIsMousePressed;
- BOOL m_bMultipleSort;
- BOOL m_bAscending;
- int m_nHighlightedItem;
- CFont fontRegular;
- COLORREF clrBtnFace, clrBtnShadow, clrBtnHilite;
- COLORREF clrBtnText, clrWindowFrame;
- COLORREF clrBtnDkShadow, clrBtnLight;
- CBrush brBtnFace;
- BOOL m_bStaticBorder;
- // Operations
- public:
- void SetSortColumn (int iColumn, BOOL bAscending = TRUE, BOOL bAdd = FALSE);
- void RemoveSortColumn (int iColumn);
- void EnableMultipleSort (BOOL bEnable = TRUE);
- protected:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyHeaderCtrl)
- //}}AFX_VIRTUAL
- virtual void OnDrawItem (CDC* pDC, int iItem, CRect rect, BOOL bIsPressed,BOOL bIsHighlighted);
- virtual void OnFillBackground (CDC* pDC);
- virtual void OnDrawSortArrow (CDC* pDC, CRect rectArrow);
- // Implementation
- public:
- virtual ~CMyHeaderCtrl();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMyHeaderCtrl)
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnPaint();
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnCancelMode();
- //}}AFX_MSG
- afx_msg LRESULT OnLayout(WPARAM wparam, LPARAM lparam);
- afx_msg LRESULT OnMouseLeave(WPARAM,LPARAM);
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MYHEADERCTRL_H__D68EFF1F_2C3A_4C49_8723_25D53C62D030__INCLUDED_)