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

📄 timesettingdlg.h

📁 EVC环境下用SDK开发WINCE的应用程序
💻 H
字号:
// TimeSettingDlg.h: interface for the CTimeSettingDlg class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TIMESETTINGDLG_H__063EB4D0_011D_4BED_844C_4A35E060E5C3__INCLUDED_)
#define AFX_TIMESETTINGDLG_H__063EB4D0_011D_4BED_844C_4A35E060E5C3__INCLUDED_

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

#include "resource.h"
#include "SettingDlg.h"

class CTimeSettingDlg : public CSettingDlg  
{
public:
	CTimeSettingDlg(CNWnd* pParent=NULL, UINT uID = IDD);
	virtual ~CTimeSettingDlg();

// Dialog Data
	enum {IDD = IDD_TIME_SETTING};

	enum { ID_TIMER_TIME = 1 };
protected:
	// windows message handler.
	virtual BOOL OnInitDialog();
	void OnTimer(UINT nIDEvent);
	virtual void OnClose();

	// Generated message map functions
	void OnHourUp();
	void OnHourDown();
	void OnMinUp();
	void OnMinDown();
	void OnSecUp();
	void OnSecDown();

	CNavButton		m_btnHourUp;
	CNavButton		m_btnHourDown;
	CNavButton		m_btnMinUp;
	CNavButton		m_btnMinDown;
	CNavButton		m_btnSecUp;
	CNavButton		m_btnSecDown;

	CNStatic		m_stcHour;
	CNStatic		m_stcMin;
	CNStatic		m_stcSec;
	CNStatic		m_stcSeparator1;
	CNStatic		m_stcSeparator2;
	// if user modify the time, set this flag to true.
	BOOL			m_bModified;
	void ModifyTime(int hr, int min, int sec);

	// format time(hour,min or sec) to string. 
	// example: 1 -> 01,  10 -> 10
	void TimeToStr(int t, CNString& str);

	DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_TIMESETTINGDLG_H__063EB4D0_011D_4BED_844C_4A35E060E5C3__INCLUDED_)

⌨️ 快捷键说明

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