-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_dailyreport.h
64 lines (54 loc) · 1.56 KB
/
ui_dailyreport.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
#pragma once
// include the MZFC library header file
#include <mzfc_inc.h>
// Popup window derived from CMzWndEx
class DailyRecordList : public UiList {
public:
// override the DrawItem member function to do your own drawing of the list
DailyRecordList() { idlist = 0; }
void DrawItem(HDC hdcDst, int nIndex, RECT* prcItem, RECT *prcWin, RECT *prcUpdate);
void setupList(int* i) { idlist = i; }
protected:
private:
int* idlist;
};
class Ui_DailyReportWnd : public CMzWndEx
{
MZ_DECLARE_DYNAMIC(Ui_DailyReportWnd);
public:
void setDetailIndex(int i);
public:
UiToolbar_Text m_Toolbar;
UiHeadingBar m_CaptionDate; //日期
UiHeadingBar m_CaptionList; //列表
UiHeadingBar m_CaptionDetail; //详情
UiScrollWin m_ScrollWinStatics; // 统计滚动窗
#ifdef USE_903SDK
UiMultiLineEdit m_TextStatics; //统计 未知行
#else
UiEdit m_TextStatics; //统计 未知行
#endif
DailyRecordList m_ListDetail; //明细列表
#ifdef USE_903SDK
UiMultiLineEdit m_TextDetail; //详情 2行
#else
UiEdit m_TextDetail; //详情 2行
#endif
UiButton_Image m_BtnLeft;
UiButton_Image m_BtnRight;
Ui_DailyReportWnd(void);
~Ui_DailyReportWnd(void);
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);
void updateDetail();
void updateDetailText();
private:
int _seletedIndex;
int* idarray;
private:
SYSTEMTIME t;
};