⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alarmwnd.h

📁 一个很漂亮的数字时钟程序,你一定会喜欢的.
💻 H
字号:
// AlarmWnd.h : interface of the CAlarmWnd class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__F86ECB64_E71F_11D4_852E_0080C879FB76__INCLUDED_)
#define AFX_MAINFRM_H__F86ECB64_E71F_11D4_852E_0080C879FB76__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

class CAlarmWnd : public CFrameWnd
{
public:
	CAlarmWnd();
	~CAlarmWnd();

	CBitmap	m_bmpClock, m_bmpNumbers;
	BOOL	m_bSecondsDot;
	int		m_iC[4], m_iA[4];
	UINT	m_uiTimer, m_uiTimerAlarm;
	int		m_iButtonState;

	int		m_iClock24Hour, m_iClockMinute, m_iClockSecond;			// Temporary values (used for comarision).
	int		iC[4], iA[4];

	BOOL	m_bSilent;
	int		m_iAlarmStarted24Hour;
	int		m_iAlarmStartedMinute;

	CFont	m_fStaticFont;
	HACCEL	m_hAccelTable;

	int		m_nYOffset, m_nXOffset;

	enum EN_BUTTONSTATE { enBUTTONSTART, enBUTTONSTOP };

	void UpdateTime(BOOL bSilent = FALSE);
	void DecodeTime(BOOL bForce = FALSE);
	void CheckForSpeech(int iClockHour, int iClockMinute);

// Overrides
public:
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAlarmWnd)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

/*
	afx_msg void OnStartStopalarm();
	afx_msg void OnSetalarm();
*/

// Generated message map functions
protected:
	//{{AFX_MSG(CAlarmWnd)
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnOptions();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnFloatingmenuAlarmactive();
	afx_msg void OnUpdateFloatingmenuAlarmactive(CCmdUI* pCmdUI);
	afx_msg void OnFloatingmenuExit();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnFloatingmenuStopalarm();
	afx_msg void OnUpdateFloatingmenuStopalarm(CCmdUI* pCmdUI);
	afx_msg void OnMove(int x, int y);
	afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);
	//}}AFX_MSG
	afx_msg LRESULT OnUserApply(WPARAM, LPARAM);

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__F86ECB64_E71F_11D4_852E_0080C879FB76__INCLUDED_)

⌨️ 快捷键说明

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