ServerDlg.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:2k
源码类别:

网格计算

开发平台:

Visual C++

  1. // ServerDlg.h : header file
  2. //
  3. #if !defined(AFX_SERVERDLG_H__E0BDEE83_3E5B_486B_BC45_B9C4306E3754__INCLUDED_)
  4. #define AFX_SERVERDLG_H__E0BDEE83_3E5B_486B_BC45_B9C4306E3754__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #define UWM_TRAYICON WM_APP + 1
  9. #include "service.h"
  10. #include "..publictrayicon.h"
  11. class CServerDlg : public CDialog
  12. {
  13. // Construction
  14. public:
  15. CServerDlg(CWnd* pParent = NULL); // standard constructor
  16. // Dialog Data
  17. //{{AFX_DATA(CServerDlg)
  18. enum { IDD = IDD_SERVER_DIALOG };
  19. CButton m_btnCloseSvr;
  20. CButton m_btnOpenSvr;
  21. CString m_slocalip;
  22. UINT m_nlistenport;
  23. //}}AFX_DATA
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CServerDlg)
  26. protected:
  27. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. protected:
  31. HICON m_hIcon;
  32. CService m_service;
  33. // Generated message map functions
  34. //{{AFX_MSG(CServerDlg)
  35. virtual BOOL OnInitDialog();
  36. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  37. afx_msg void OnPaint();
  38. afx_msg HCURSOR OnQueryDragIcon();
  39. afx_msg void OnDestroy();
  40. afx_msg void OnOpendirsvr();
  41. afx_msg void OnClosedirsvr();
  42. afx_msg void OnLocalsetting();
  43. afx_msg void OnTimer(UINT nIDEvent);
  44. afx_msg void OnTishowwnd();
  45. afx_msg void OnTiexit();
  46. afx_msg void OnTiabout();
  47. afx_msg void OnTistartsvr();
  48. afx_msg void OnTiclosesvr();
  49. //}}AFX_MSG
  50. LRESULT OnTrayNotification(WPARAM wparam, LPARAM lparam);
  51. DECLARE_MESSAGE_MAP()
  52. protected:
  53. CTrayIcon m_otrayicon;
  54. };
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  57. #endif // !defined(AFX_SERVERDLG_H__E0BDEE83_3E5B_486B_BC45_B9C4306E3754__INCLUDED_)