-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_person_edit.h
52 lines (43 loc) · 1.09 KB
/
ui_person_edit.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
#ifndef _UI_PERSON_EDIT_H
#define _UI_PERSON_EDIT_H
// include the MZFC library header file
#include <mzfc_inc.h>
// Main window derived from CMzWndEx
class Ui_PersonEditWndEx : public CMzWndEx {
MZ_DECLARE_DYNAMIC(Ui_PersonEditWndEx);
public:
Ui_PersonEditWndEx() {
_mode = 0;
_editIndex = 0;
_selectedTid = 0;
}
void setMode(int m) {
_mode = m;
}
void setEditIndex(int i) {
if(_mode == 0){ //新建
_selectedTid = i;
}
_editIndex = i;
}
public:
UiToolbar_Text m_Toolbar;
UiButtonEx m_BtnPersonType;
UiSingleLineEdit m_EdtPersonName;
UiHeadingBar m_CaptionTitle;
UiList m_TypeList;
protected:
// Initialization of the window (dialog)
virtual BOOL OnInitDialog();
// override the MZFC command handler
virtual void OnMzCommand(WPARAM wParam, LPARAM lParam);
LRESULT MzDefWndProc(UINT message, WPARAM wParam, LPARAM lParam);
private:
//设置类别内容
void setPersonTypeList();
private:
int _mode; //0: 新建, 1: 删除
int _editIndex;
int _selectedTid; //selected person id
};
#endif /*_UI_PERSON_EDIT_H*/