-
Notifications
You must be signed in to change notification settings - Fork 0
/
StudentSmsDlg.h
49 lines (40 loc) · 1.42 KB
/
StudentSmsDlg.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
#pragma once
struct IStudentCheckChanged
{
virtual void OnStudentCheckChanged(int nSelCurrent, int nSelExpired) PURE;
};
class CStudentSmsDlg
: public SOUI::SHostDialog
, public IStudentCheckChanged
{
public:
CStudentSmsDlg(void);
~CStudentSmsDlg(void);
protected:
void OnBtnSmsRecord();
void OnSearchFillList(EventArgs *e);
void OnSearchValue(EventArgs *e);
void OnSmsInputNotify(EventArgs *e);
void OnScale(int nID);
EVENT_MAP_BEGIN()
EVENT_ID_HANDLER(R.id.edit_sms_input,EventRENotify::EventID,OnSmsInputNotify)
EVENT_ID_COMMAND(R.id.btn_sms_record,OnBtnSmsRecord);
EVENT_ID_HANDLER(R.id.edit_search,EventFillSearchDropdownList::EventID,OnSearchFillList)
EVENT_ID_HANDLER(R.id.edit_search,EventDropdownListSelected::EventID,OnSearchValue)
EVENT_ID_COMMAND_RANGE(R.id.scale_100,R.id.scale_200,OnScale)
EVENT_MAP_END()
protected:
BOOL OnInitDialog(HWND wndFocus, LPARAM lInitParam);
void OnLButtonDown(UINT nFlags, CPoint point);
BEGIN_MSG_MAP_EX(CStudentSmsDlg)
MSG_WM_LBUTTONDOWN(OnLButtonDown)
MSG_WM_INITDIALOG(OnInitDialog)
CHAIN_MSG_MAP(SOUI::SHostDialog)
END_MSG_MAP()
protected:
virtual void OnStudentCheckChanged(int nSelCurrent, int nSelExpired);
protected:
SWindow * m_wndSmsRecord;
SMCListView * m_tvStudent;
SListView * m_lvSmsRecord;
};