-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCDlgCFG_Load.cpp
More file actions
74 lines (50 loc) · 1.82 KB
/
Copy pathCDlgCFG_Load.cpp
File metadata and controls
74 lines (50 loc) · 1.82 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// CDlgCFG_Load.cpp: 구현 파일
//
#include "pch.h"
#include "framework.h"
#include "BatchNamer.h"
#include "CDlgCFG_Load.h"
#include <afxdialogex.h>
// CDlgCFG_Load 대화 상자
IMPLEMENT_DYNAMIC(CDlgCFG_Load, CDialogEx)
CDlgCFG_Load::CDlgCFG_Load(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_CFG_LOAD, pParent)
{
m_nLoadType = 0; // 0 = Add a Folder itself, 1 = Add Files in a Folder
m_bShowEverytime = FALSE;
m_bAutoSort = TRUE;
}
CDlgCFG_Load::~CDlgCFG_Load()
{
}
void CDlgCFG_Load::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CDlgCFG_Load, CDialogEx)
END_MESSAGE_MAP()
// CDlgCFG_Load 메시지 처리기
BOOL CDlgCFG_Load::OnInitDialog()
{
CDialogEx::OnInitDialog();
if (m_nLoadType == 0) ((CButton*)GetDlgItem(IDC_RADIO_LOAD_0))->SetCheck(TRUE);
else if (m_nLoadType == 1) ((CButton*)GetDlgItem(IDC_RADIO_LOAD_1))->SetCheck(TRUE);
if (m_bAutoSort == 0) ((CButton*)GetDlgItem(IDC_RADIO_AUTOSORT_0))->SetCheck(TRUE);
else if (m_bAutoSort == 1) ((CButton*)GetDlgItem(IDC_RADIO_AUTOSORT_1))->SetCheck(TRUE);
((CButton*)GetDlgItem(IDC_CHK_SHOWEVERYTIME))->SetCheck(m_bShowEverytime);
return TRUE; // return TRUE unless you set the focus to a control
// 예외: OCX 속성 페이지는 FALSE를 반환해야 합니다.
}
void CDlgCFG_Load::OnOK()
{
if (((CButton*)GetDlgItem(IDC_RADIO_LOAD_0))->GetCheck()==TRUE) m_nLoadType = 0;
else if (((CButton*)GetDlgItem(IDC_RADIO_LOAD_1))->GetCheck() == TRUE) m_nLoadType = 1;
if (((CButton*)GetDlgItem(IDC_RADIO_AUTOSORT_0))->GetCheck() == TRUE) m_bAutoSort = FALSE;
else if (((CButton*)GetDlgItem(IDC_RADIO_AUTOSORT_1))->GetCheck() == TRUE) m_bAutoSort = TRUE;
m_bShowEverytime = ((CButton*)GetDlgItem(IDC_CHK_SHOWEVERYTIME))->GetCheck();
CDialogEx::OnOK();
}
void CDlgCFG_Load::OnCancel()
{
CDialogEx::OnCancel();
}