- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
EDCLOCK.H
资源名称:酒店管理系统源代码.rar [点击查看]
上传用户:czfddz
上传日期:2013-03-20
资源大小:1517k
文件大小:2k
源码类别:
酒店行业
开发平台:
C/C++
- #ifndef __MFC_EXT_DIGITCLOCK_H__
- #define __MFC_EXT_DIGITCLOCK_H__
- // EDClock.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CXJWDigitClock window
- class CLEDClock : public CStatic
- {
- // Construction
- public:
- CLEDClock();
- virtual ~CLEDClock();
- // Attributes
- public:
- enum CClockStyle { XDC_SECOND, XDC_NOSECOND };
- static COLORREF origin;
- // Operations
- public:
- CClockStyle GetStyle() const { return m_style;}
- CClockStyle SetStyle(CClockStyle style);
- COLORREF GetColor() const { return m_color;}
- COLORREF SetColor(COLORREF color);
- BOOL GetAlarm() const { return m_bAlarm;}
- BOOL SetAlarm(BOOL bAlarm = TRUE);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CLEDClock)
- protected:
- virtual void PreSubclassWindow();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CLEDClock)
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnDestroy();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnPaint();
- //}}AFX_MSG
- private:
- BOOL m_bAlarm;
- COLORREF m_color;
- UINT m_w;
- UINT m_h;
- CClockStyle m_style;
- BITMAP m_bm;
- UINT m_nCount;
- HBITMAP m_hBitmap[12];
- UINT m_nTimer;
- void Output(UINT digit, UINT pos);
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // __MFC_EXT_DIGITCLOCK_H__