Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
MyHeaderCtrl.h
Package: 视频会议系统.rar [view]
Upload User: popouu88
Upload Date: 2013-02-11
Package Size: 2894k
Code Size: 2k
Category:
VOIP program
Development Platform:
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_)