mystatusbar.h

来自「嵌入式电子钟.rar」· C头文件 代码 · 共 40 行

H
40
字号
// 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_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?