-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetting.h
107 lines (89 loc) · 2.89 KB
/
Setting.h
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#if !defined(AFX_SETTING_H__03AD80F0_1751_408F_9FF5_BCEF96E7C356__INCLUDED_)
#define AFX_SETTING_H__03AD80F0_1751_408F_9FF5_BCEF96E7C356__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Setting.h : header file
//
//#include "Excel.h"
//#include "afxmt.h"
#include "ShadeButtonST.h" // Added by ClassView
#include "EditListCtrl.h"
/////////////////////////////////////////////////////////////////////////////
// CListSetting dialog
// 中奖人结构体
typedef struct stLuckyMan
{
int nSN;
CString strName;
CString strTelNumber;
CString strCardID;
CString strRank;
}stLuckyMan;
class CListSetting : public CDialog
{
// Construction
public:
CString m_strDefaultRank;
CString m_strDefaultName;
volatile BOOL m_bRun; //保存抽奖进行状态
CCriticalSection m_csRun;
CString m_strItemRank; //抽奖级别
CString m_strItemAmount; //奖品数量
CString m_strItemAword; //奖品名称
INT m_nItemAmount; //奖品数量
UINT m_nNum[MAX_ID_SHOW_COUNT]; //记录分组每组人员人数
UINT m_nIDCount;
UINT m_nTotalAmount; //参与抽奖人员数量
BOOL m_bEnableRepeat; //可重复抽奖标识
//UINT m_nDefaultLoc[MAX_ID_SHOW_COUNT];
bool m_bDefaultListInAdvance;//DEFAULT_LIST_IN_ADVANCE;
CShadeButtonST m_btnOpen;
CShadeButtonST m_btnOK;
VOID OpenListFile();
BOOL InputExcelDataToListControl(CListCtrl *pList,CString strPath,int iMode=0);
//CString m_strListTilt;
CListSetting(CWnd* pParent = NULL); // standard constructor
virtual BOOL PreTranslateMessage(MSG* pMsg);
CArray<stLuckyMan, stLuckyMan &> m_arLuckyMan; // 中奖人
CCriticalSection m_csLuckyManMsg;
void AddLuckyManMsg(stLuckyMan &stLuckyMan);
BOOL GetLuckyManMsg(stLuckyMan &stLuckyMan);
void DeleteLuckyManMsg();
int DeleteInforFromListControl(CListSetting *pListSet,CString strName);
void GetRank(CString &str);
// Dialog Data
//{{AFX_DATA(CListSetting)
enum { IDD = IDD_DIALOG_LIST_SET };
CButton m_ctrCheckRepeat;
CStatic m_stcAmount;
CEditListCtrl m_listInfo;
CString m_strFilepath;
int m_iRadio;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListSetting)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CToolTipCtrl m_tooltip;
// Generated message map functions
//{{AFX_MSG(CListSetting)
virtual BOOL OnInitDialog();
virtual void OnOK();
afx_msg void OnButtonOpen();
afx_msg void OnCheckRepeat();
afx_msg void OnRadioShowName();
afx_msg void OnRadioShowID();
afx_msg void OnRadioShowTel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
//BOOL m_bEnableLotteryRepeat;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SETTING_H__03AD80F0_1751_408F_9FF5_BCEF96E7C356__INCLUDED_)