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

📄 ttestdlg.h

📁 这是VC++控制计算机时钟的一个例子
💻 H
字号:
// TTestDlg.h : header file
//

#if !defined(AFX_TTESTDLG_H__D62715C8_8FBE_11D2_BDF6_006097DB8C43__INCLUDED_)
#define AFX_TTESTDLG_H__D62715C8_8FBE_11D2_BDF6_006097DB8C43__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTimeTestDlg dialog

class CTimeTestDlg : public CDialog
{
// Construction
public:
	CTimeTestDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTimeTestDlg)
	enum { IDD = IDD_TIMETEST_DIALOG };
	CString	m_sCTimeOutput;
	CString	m_sCGoodTimeOutput;
	int		m_nUseGMT;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTimeTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON    m_hIcon;
	int		m_nDay;
	int		m_nHour;
	int		m_nMinute;
	int		m_nSecond;
	int		m_nYear;
   int      m_nMonth;

	// Generated message map functions
	//{{AFX_MSG(CTimeTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSetTime();
	afx_msg void OnChangeZone();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

   void SetTimeOutput();
};

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

#endif // !defined(AFX_TTESTDLG_H__D62715C8_8FBE_11D2_BDF6_006097DB8C43__INCLUDED_)

⌨️ 快捷键说明

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