MyStatusBar.h
上传用户:sdpcwz
上传日期:2009-12-14
资源大小:1237k
文件大小:1k
- // MyStatusBar.h: interface for the CMyStatusBar class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MYSTATUSBAR_H__1D524155_62DE_11D6_8F32_00E04CE76240__INCLUDED_)
- #define AFX_MYSTATUSBAR_H__1D524155_62DE_11D6_8F32_00E04CE76240__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //定义电子钟窗格的ID,并赋值为其上一个窗格ID加一
- #define ID_INDICATOR_TIME ID_INDICATOR_SCRL+1
- class CMyStatusBar : public CStatusBar {
- DECLARE_DYNCREATE(CMyStatusBar)
- public:
- CMyStatusBar();
- ~CMyStatusBar();
- private:
- CString m_strClockFormat; //时钟显示时间的格式
- public:
- void SetClockFormat(LPCTSTR strClockFormat);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyStatusBar)
- //}}AFX_VIRTUAL
- // Generated message map functions
- //{{AFX_MSG(CMyStatusBar)
- afx_msg void OnDestroy();
- afx_msg void OnUpdateIndicatorTime(CCmdUI* pCmdUI);
- afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #endif // !defined(AFX_MYSTATUSBAR_H__1D524155_62DE_11D6_8F32_00E04CE76240__INCLUDED_)