JunkBox_Win_Lib 1.5.3
Loading...
Searching...
No Matches
InputNumDLG.h
Go to the documentation of this file.
1#pragma once
2
3#include "DLGBoxBase.h"
4
5
6//
7namespace jbxwl {
8
9
10BOOL InputNumDLG(LPCTSTR title, int* val);
11BOOL InputFloatNumDLG(LPCTSTR title, double* val);
12
13BOOL InputMultiFloatNumDLG(LPCTSTR t0, double* v0, LPCTSTR t1=NULL, double* v1=NULL, LPCTSTR t2=NULL, double* v2=NULL,
14 LPCTSTR t3=NULL, double* v3=NULL, LPCTSTR t4=NULL, double* v4=NULL, LPCTSTR t5=NULL, double* v5=NULL);
15
16
17
19// CInputNumDLG ダイアログ
20
21class CInputNumDLG : public CDialog
22{
23 DECLARE_DYNAMIC(CInputNumDLG)
24
25public:
26 CInputNumDLG(CWnd* pParent=NULL); // 標準コンストラクタ
27 CInputNumDLG(LPCTSTR tn, int v=0, CWnd* pParent=NULL);
28 virtual ~CInputNumDLG();
29
30 virtual BOOL OnInitDialog();
31
32// ダイアログ データ
33 enum { IDD = IDD_INPNUM_DLG };
34
35protected:
36 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV サポート
37 virtual void OnOK();
38
39public:
40 CStatic* valtlBox;
41 CEdit* valBox;
42
43 CString valtl;
44 int val;
45
46 DECLARE_MESSAGE_MAP()
47};
48
49
50
51
53// CInputFloatNumDLG ダイアログ
54
55class CInputFloatNumDLG : public CDialog
56{
57 DECLARE_DYNAMIC(CInputFloatNumDLG)
58
59public:
60 CInputFloatNumDLG(CWnd* pParent=NULL);
61 CInputFloatNumDLG(LPCTSTR tn, double v=0, CWnd* pParent=NULL);
62 virtual ~CInputFloatNumDLG();
63
64 virtual BOOL OnInitDialog();
65
66// ダイアログ データ
67 enum { IDD = IDD_INPFLT_DLG };
68
69protected:
70 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV サポート
71 virtual void OnOK();
72
73public:
74 CStatic* valtlBox;
75 CEdit* valBox;
76
77 CString valtl;
78 double val;
79
80 DECLARE_MESSAGE_MAP()
81};
82
83
84
85
87// CInputMultiFloatNumDLG ダイアログ
88
89class CInputMultiFloatNumDLG : public CDialog
90{
91 DECLARE_DYNAMIC(CInputMultiFloatNumDLG)
92
93public:
94 CInputMultiFloatNumDLG(CWnd* pParent=NULL);
95 CInputMultiFloatNumDLG(LPCTSTR t0, double v0=0., LPCTSTR t1=NULL, double v1=0., LPCTSTR t2=NULL, double v2=0.,
96 LPCTSTR t3=NULL, double v3=0., LPCTSTR t4=NULL, double v4=0., LPCTSTR t5=NULL, double v5=0., CWnd* pParent=NULL);
98
99 virtual BOOL OnInitDialog();
100
101// ダイアログ データ
103
104protected:
105 virtual void DoDataExchange(CDataExchange* pDX);
106 virtual void OnOK();
107
108public:
109 CStatic* valtlBox[6];
110 CEdit* valBox[6];
111
112 CString valtl[6];
113 double val[6];
114
115 DECLARE_MESSAGE_MAP()
116};
117
118
119
120} // namespace
121
virtual BOOL OnInitDialog()
CInputFloatNumDLG(CWnd *pParent=NULL)
virtual void DoDataExchange(CDataExchange *pDX)
CInputMultiFloatNumDLG(CWnd *pParent=NULL)
virtual void DoDataExchange(CDataExchange *pDX)
virtual BOOL OnInitDialog()
CInputNumDLG(CWnd *pParent=NULL)
virtual void OnOK()
virtual void DoDataExchange(CDataExchange *pDX)
BOOL InputMultiFloatNumDLG(LPCTSTR t0, double *v0, LPCTSTR t1=NULL, double *v1=NULL, LPCTSTR t2=NULL, double *v2=NULL, LPCTSTR t3=NULL, double *v3=NULL, LPCTSTR t4=NULL, double *v4=NULL, LPCTSTR t5=NULL, double *v5=NULL)
BOOL InputFloatNumDLG(LPCTSTR title, double *val)
BOOL InputNumDLG(LPCTSTR title, int *val)
#define IDD_INPNUM_DLG
Definition resource.h:13
#define IDD_INPFLT_DLG
Definition resource.h:14
#define IDD_MLT_INPNUM_DLG
Definition resource.h:15