-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeDurationDlg.cpp
57 lines (40 loc) · 1.25 KB
/
ChangeDurationDlg.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// ChangeDurationDlg.cpp : implementation file
//
#include "stdafx.h"
#include "ZTimeAlloc.h"
#include "ChangeDurationDlg.h"
// CChangeDurationDlg dialog
IMPLEMENT_DYNAMIC(CChangeDurationDlg, CDialog)
CChangeDurationDlg::CChangeDurationDlg(CWnd* pParent /*=NULL*/)
: CDialog(CChangeDurationDlg::IDD, pParent)
, m_nSliceDuration(0)
, m_strDuration(_T(""))
{
}
CChangeDurationDlg::~CChangeDurationDlg()
{
}
void CChangeDurationDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT_DURATION, m_strDuration);
}
BEGIN_MESSAGE_MAP(CChangeDurationDlg, CDialog)
ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_DURATION, &CChangeDurationDlg::OnDeltaposSpinDuration)
END_MESSAGE_MAP()
// CChangeDurationDlg message handlers
BOOL CChangeDurationDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_strDuration.Format("%d",m_nSliceDuration);
UpdateData(FALSE);
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CChangeDurationDlg::OnDeltaposSpinDuration(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
// TODO: Add your control notification handler code here
*pResult = 0;
}