MacProgressCtrl.h
资源名称:酒店管理系统源代码.rar [点击查看]
上传用户:czfddz
上传日期:2013-03-20
资源大小:1517k
文件大小:2k
源码类别:
酒店行业
开发平台:
C/C++
- #if !defined(AFX_MACPROGRESSCTRL_H__603BBF44_B19C_11D3_90FA_0020AFBC499D__INCLUDED_)
- #define AFX_MACPROGRESSCTRL_H__603BBF44_B19C_11D3_90FA_0020AFBC499D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MacProgressCtrl.h : header file
- //
- // CMacProgressCtrl class, version 1.0
- //
- // Copyright (c) 1999 Paul M. Meidinger (pmmeidinger@yahoo.com)
- //
- // Feel free to modifiy and/or distribute this file, but
- // do not remove this header.
- //
- // I would appreciate a notification of any bugs discovered or
- // improvements that could be made.
- //
- // This file is provided "as is" with no expressed or implied warranty.
- //
- // History:
- // PMM 12/21/1999 Initial implementation.
- /////////////////////////////////////////////////////////////////////////////
- // CMacProgressCtrl window
- class CMacProgressCtrl : public CProgressCtrl
- {
- // Construction
- public:
- CMacProgressCtrl();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMacProgressCtrl)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- BOOL GetIndeterminate();
- void SetIndeterminate(BOOL bIndeterminate = TRUE);
- COLORREF GetColor();
- void SetColor(COLORREF crColor);
- virtual ~CMacProgressCtrl();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMacProgressCtrl)
- afx_msg void OnPaint();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- int m_nIndOffset;
- BOOL m_bIndeterminate;
- void DrawVerticalBar(CDC *pDC, const CRect rect);
- void DrawHorizontalBar(CDC *pDC, const CRect rect);
- void DeletePens();
- void CreatePens();
- CPen m_penColor;
- CPen m_penColorLight;
- CPen m_penColorLighter;
- CPen m_penColorDark;
- CPen m_penColorDarker;
- CPen m_penDkShadow;
- CPen m_penShadow;
- CPen m_penLiteShadow;
- void GetColors();
- COLORREF m_crColor;
- COLORREF m_crColorLight;
- COLORREF m_crColorLighter;
- COLORREF m_crColorLightest;
- COLORREF m_crColorDark;
- COLORREF m_crColorDarker;
- COLORREF m_crDkShadow;
- COLORREF m_crShadow;
- COLORREF m_crLiteShadow;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MACPROGRESSCTRL_H__603BBF44_B19C_11D3_90FA_0020AFBC499D__INCLUDED_)