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

📄 bgnplaytimedlg.cpp

📁 TM8000硬盘录像机客户端编程文档和Demo源代码
💻 CPP
字号:
// BgnPlayTimeDlg.cpp : implementation file
//

#include "stdafx.h"
#include "SAMPLE.h"
#include "BgnPlayTimeDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//--------------------------
extern CString l_Hour;
extern CString l_Minute;
extern CString l_TimeSetup;

/////////////////////////////////////////////////////////////////////////////
// CBgnPlayTimeDlg dialog


CBgnPlayTimeDlg::CBgnPlayTimeDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CBgnPlayTimeDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CBgnPlayTimeDlg)
	m_hour = 0;
	m_minute = 0;
	m_lhour =l_Hour;
	m_lminute=l_Minute;
	//}}AFX_DATA_INIT
	pParentWnd = (CMainFrame *)pParent ;
}


void CBgnPlayTimeDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CBgnPlayTimeDlg)
	DDX_Text(pDX, IDC_BGNHOUR_EDIT, m_hour);
	DDV_MinMaxUInt(pDX, m_hour, 0, 23);
	DDX_Text(pDX, IDC_BGNMINUTE_EDIT, m_minute);
	DDV_MinMaxUInt(pDX, m_minute, 0, 59);
	DDX_Text(pDX, IDC_STATICHOUR, m_lhour);
	DDX_Text(pDX, IDC_STATICMINUTE, m_lminute);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CBgnPlayTimeDlg, CDialog)
	//{{AFX_MSG_MAP(CBgnPlayTimeDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CBgnPlayTimeDlg message handlers

BOOL CBgnPlayTimeDlg::Create(CWnd* pParentWnd)
{
	return CDialog::Create(IDD, pParentWnd);
}

void CBgnPlayTimeDlg::OnOK() 
{
	UpdateData(TRUE) ;
	
	CDialog::OnOK();
}

void CBgnPlayTimeDlg::SetBgnHour(UINT  h)
{
	m_hour = h ;
}

UINT CBgnPlayTimeDlg::GetBgnHour()
{
	return m_hour ;
}

void CBgnPlayTimeDlg::SetBgnMinute(UINT  m)
{
	m_minute = m ;
}

UINT CBgnPlayTimeDlg::GetBgnMinute()
{
	return m_minute ;
}

void CBgnPlayTimeDlg::PostNcDestroy() 
{
	
	CDialog::PostNcDestroy();
}

BOOL CBgnPlayTimeDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
    ::SetWindowText(this->m_hWnd,l_TimeSetup);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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