-
Notifications
You must be signed in to change notification settings - Fork 5
/
SerchDialog.cpp
73 lines (56 loc) · 1.71 KB
/
SerchDialog.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
58
59
60
61
62
63
64
65
/*----------------------------------------------------------
Charu3
検索ダイアログ
----------------------------------------------------------*/
#include "stdafx.h"
#include "Charu3.h"
#include "SerchDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// アプリケーションオブジェクト
extern CCharu3App theApp;
//---------------------------------------------------
// CSerchDialog ダイアログ
//---------------------------------------------------
BEGIN_MESSAGE_MAP(CSerchDialog, CDialog)
//{{AFX_MSG_MAP(CSerchDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//---------------------------------------------------
//コンストラクタ
//---------------------------------------------------
CSerchDialog::CSerchDialog(CWnd* pParent /*=NULL*/) : CDialog(CSerchDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CSerchDialog)
m_nSerchKind = -1;
m_nSerchLogic = -1;
m_strSerchKey = _T("");
//}}AFX_DATA_INIT
}
//---------------------------------------------------
//データエクスチェンジ
//---------------------------------------------------
void CSerchDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
m_nSerchKind = theApp.m_ini.m_nSerchKind;
m_nSerchLogic = theApp.m_ini.m_nSerchLogic;
//{{AFX_DATA_MAP(CSerchDialog)
if(GetDlgItem(IDC_RADIO_NAME))
DDX_Radio(pDX, IDC_RADIO_NAME, m_nSerchKind);
if(GetDlgItem(IDC_RADIO_AND))
DDX_Radio(pDX, IDC_RADIO_AND, m_nSerchLogic);
if(GetDlgItem(IDC_SERCH_TEXT))
DDX_Text(pDX, IDC_SERCH_TEXT, m_strSerchKey);
//}}AFX_DATA_MAP
}
//---------------------------------------------------
// CSerchDialog メッセージ ハンドラ
//---------------------------------------------------
void CSerchDialog::OnOK()
{
CDialog::OnOK();
}