forked from gopa810/gcal-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DlgEventsTypeOfEvent.cpp
54 lines (43 loc) · 1.32 KB
/
DlgEventsTypeOfEvent.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
// DlgEventsTypeOfEvent.cpp : implementation file
//
#include "stdafx.h"
#include "vcal5beta.h"
#include "DlgEventsTypeOfEvent.h"
/////////////////////////////////////////////////////////////////////////////
// DlgEventsTypeOfEvent dialog
DlgEventsTypeOfEvent::DlgEventsTypeOfEvent(CWnd* pParent /*=NULL*/)
: CDialog(DlgEventsTypeOfEvent::IDD, pParent)
{
//{{AFX_DATA_INIT(DlgEventsTypeOfEvent)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_nType = 0;
}
void DlgEventsTypeOfEvent::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(DlgEventsTypeOfEvent)
DDX_Control(pDX, IDC_STATIC2, m_s2);
DDX_Control(pDX, IDC_STATIC1, m_s1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(DlgEventsTypeOfEvent, CDialog)
//{{AFX_MSG_MAP(DlgEventsTypeOfEvent)
ON_BN_CLICKED(IDC_BUTTON1, OnGaurabdaDate)
ON_BN_CLICKED(IDC_BUTTON2, OnGregorianDate)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// DlgEventsTypeOfEvent message handlers
void DlgEventsTypeOfEvent::OnGaurabdaDate()
{
// TODO: Add your control notification handler code here
m_nType = 1;
CDialog::OnOK();
}
void DlgEventsTypeOfEvent::OnGregorianDate()
{
// TODO: Add your control notification handler code here
m_nType = 2;
CDialog::OnOK();
}