Develop and Download Open Source Software

Browse Subversion Repository

Contents of /WinCS/BMSystemDlg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (show annotations) (download) (as text)
Wed Feb 10 18:21:00 2010 UTC (14 years, 2 months ago) by sho1get
File MIME type: text/x-chdr
File size: 1933 byte(s)


1 #pragma once
2
3 #include "afxcmn.h"
4 #include "afxwin.h"
5 #include "PictureEx.h"
6
7 //////////////////////////////////////////////////////////////////////////
8
9 class CBMSystemDlg : public CDialog, CStringConvert
10 {
11 DECLARE_DYNAMIC(CBMSystemDlg)
12
13 public:
14 CBMSystemDlg(CWnd* pParent = NULL);
15 virtual ~CBMSystemDlg();
16 enum { IDD = IDD_BMSYSTEM_DIALOG };
17
18 void SetNodeList(const NodeDataList &list);
19 void SetProgressPoint(WORD wNodeID, int nPoint); // Per node
20 void SetProgress(int nPoint); // System
21 void SetTestScore(WORD wNodeID, BM_DATA bm);
22 void SetSystemScore(BM_SYSTEMSCORE bmScore, const CString &csLogPath);
23 void GetRuntimeText(CString &cs) { m_xEditRuntime.GetWindowText(cs); }
24
25 protected:
26 DECLARE_MESSAGE_MAP()
27 virtual void DoDataExchange(CDataExchange* pDX);
28 virtual BOOL OnInitDialog();
29
30 afx_msg void OnBnClickedOk() {}
31 afx_msg void OnBnClickedBtnBmsystemClose();
32 afx_msg void OnBnClickedBtnBmsystemHelp();
33 afx_msg void OnBnClickedBtnBmsystemLog();
34 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
35 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
36
37 int SearchNodeListIndex(WORD wNodeID);
38 BOOL StartTimer();
39 void StopTimer();
40 void RuntimeTimer();
41
42 static void WINAPI doRuntimeTimer(LPVOID pvContext, BOOLEAN fTimeout);
43
44 public:
45 CProgressCtrl m_xProgress;
46 CPictureEx m_xImgLoader;
47 CListCtrl m_xNodeList;
48 CButton m_xBtnLog;
49 CStatic m_xTxtPercent;
50 CStatic m_xTxtState;
51 CEdit m_xEditRuntime;
52 CEdit m_xEditNodes;
53 CEdit m_xEditTotal;
54 CEdit m_xEditAverage;
55 CEdit m_xEditProcessors;
56 CEdit m_xEditHigh;
57 CEdit m_xEditLow;
58
59 protected:
60 CCriticalSection m_cs;
61 NodeDataList m_NodeList;
62 CStopwatch m_Stopwatch;
63 CString m_LogPath;
64 HANDLE m_hTimer;
65 HICON m_hIcon;
66 BOOL m_fEnd;
67 };
68
69 //////////////////////////////////////////////////////////////////////////

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26