| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 | 
							
- // TimeSyncServerDlg.h : 头文件
 
- //
 
- #pragma once
 
- extern void WINAPI ServiceCtrlHandler(DWORD Opcode);
 
- extern BOOL InstallService(CString &strPath);
 
- extern BOOL DeleteService();
 
- #define WM_START		(WM_USER + 1)
 
- #define WM_FRESH        (WM_USER + 2)
 
- #define WM_SHOWTASK		(WM_USER + 3)
 
- #define ID_POPMENU_SHOW_MAIN_WND (WM_USER + 4)
 
- #define ID_POPMENU_CLOSE_CLIENT (WM_USER + 5)
 
- // CTimeSyncServerDlg 对话框
 
- class CTimeSyncServerDlg : public CDialogEx
 
- {
 
- // 构造
 
- public:
 
- 	CTimeSyncServerDlg(CWnd* pParent = NULL);	// 标准构造函数
 
- // 对话框数据
 
- #ifdef AFX_DESIGN_TIME
 
- 	enum { IDD = IDD_TIMESYNCSERVER_DIALOG };
 
- #endif
 
- 	protected:
 
- 	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持
 
- // 实现
 
- protected:
 
- 	HICON m_hIcon;
 
- 	NOTIFYICONDATA m_nid;
 
- 	bool m_bIsShow;
 
- 	void ToTray();
 
- 	void DeleteTray();
 
- 	VOID OnTrayMenuShowMainWnd();
 
- 	void OnTrayMenuCloseClient();
 
- 	// 生成的消息映射函数
 
- 	virtual BOOL OnInitDialog();
 
- 	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
 
- 	afx_msg void OnPaint();
 
- 	afx_msg HCURSOR OnQueryDragIcon();
 
- 	LRESULT OnShowTask(WPARAM wParam, LPARAM lParam);
 
- 	DECLARE_MESSAGE_MAP()
 
- public:
 
- 	afx_msg void OnBnClickedButton1();
 
- private:
 
- 	CString m_strSvrPath;
 
- public:
 
- 	afx_msg void OnBnClickedButton2();
 
- 	afx_msg void OnBnClickedButton3();
 
- 	afx_msg void OnBnClickedButton4();
 
- 	afx_msg void OnBnClickedBtnRead();
 
- 	afx_msg void OnTimer(UINT_PTR nIDEvent);
 
- protected:
 
- 	afx_msg LRESULT OnStartapp(WPARAM wParam, LPARAM lParam);
 
- public:
 
- 	afx_msg void OnClose();
 
- 	afx_msg void OnBnClickedChkDataCompression();
 
- };
 
 
  |