WinPingDlg.h
上传用户:qzzxgm
上传日期:2009-12-14
资源大小:1882k
文件大小:2k
源码类别:

书籍源码

开发平台:

Visual C++

  1. // WinPingDlg.h : header file
  2. //
  3. #if !defined(AFX_WINPINGDLG_H__D12A31A9_1D4C_4301_997D_8E8BCC2E54D5__INCLUDED_)
  4. #define AFX_WINPINGDLG_H__D12A31A9_1D4C_4301_997D_8E8BCC2E54D5__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CWinPingDlg dialog
  10. #include "PingThread.h"
  11. #include "ComboBoxEx.h"
  12. class CWinPingDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. CWinPingDlg(CWnd* pParent = NULL); // standard constructor
  17. CPingThread m_pingThread;
  18. // Dialog Data
  19. //{{AFX_DATA(CWinPingDlg)
  20. enum { IDD = IDD_WINPING_DIALOG };
  21. CAutoComplete m_cboServers;
  22. CSpinButtonCtrl m_spinner;
  23. CListCtrl m_list;
  24. CString m_strRetry;
  25. //}}AFX_DATA
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(CWinPingDlg)
  28. protected:
  29. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. protected:
  33. void EnableControls(BOOL bEnable);
  34. CImageList m_img;
  35. HICON m_hIcon;
  36. CPoint m_ptTo;
  37. CPoint m_ptFrom;
  38. CRect m_rcRect;
  39. BOOL m_bProgress;
  40. int m_nPos;
  41. UINT m_nDir;
  42. CPingThread m_pingThread;
  43. // Generated message map functions
  44. //{{AFX_MSG(CWinPingDlg)
  45. virtual BOOL OnInitDialog();
  46. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  47. afx_msg void OnPaint();
  48. afx_msg HCURSOR OnQueryDragIcon();
  49. afx_msg void OnPing();
  50. afx_msg void OnTimer(UINT nIDEvent);
  51. virtual void OnCancel();
  52. //}}AFX_MSG
  53. LRESULT OnStatus(WPARAM wParam, LPARAM lParam);
  54. LRESULT OnPingEnd(WPARAM wParam, LPARAM lParam);
  55. DECLARE_MESSAGE_MAP()
  56. };
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_WINPINGDLG_H__D12A31A9_1D4C_4301_997D_8E8BCC2E54D5__INCLUDED_)