timereminddialog.cpp

来自「《Visual C++.NET MFC类库应用详解》程序实例」· C++ 代码 · 共 41 行

CPP
41
字号
// TimeremindDialog.cpp : 实现文件
//

#include "stdafx.h"
#include "UseClock.h"
#include "TimeremindDialog.h"


// CTimeremindDialog 对话框

IMPLEMENT_DYNAMIC(CTimeremindDialog, CDialog)
CTimeremindDialog::CTimeremindDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CTimeremindDialog::IDD, pParent)
	, m_hour(0)
	, m_minute(0)
	, m_second(0)
{
}

CTimeremindDialog::~CTimeremindDialog()
{
}

void CTimeremindDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_HOUR, m_hour);
	DDV_MinMaxInt(pDX, m_hour, 0, 23);
	DDX_Text(pDX, IDC_MINUTE, m_minute);
	DDV_MinMaxInt(pDX, m_minute, 0, 59);
	DDX_Text(pDX, IDC_SECOND, m_second);
	DDV_MinMaxInt(pDX, m_second, 0, 59);
}


BEGIN_MESSAGE_MAP(CTimeremindDialog, CDialog)
END_MESSAGE_MAP()


// CTimeremindDialog 消息处理程序

⌨️ 快捷键说明

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