TransferProgress.h
上传用户:hatrsolar
上传日期:2008-05-03
资源大小:252k
文件大小:1k
源码类别:

网络编程

开发平台:

Visual C++

  1. #if !defined(AFX_TRANSFERPROGRESS_H__4C0FDD36_5E57_4749_9F22_545B420DD36C__INCLUDED_)
  2. #define AFX_TRANSFERPROGRESS_H__4C0FDD36_5E57_4749_9F22_545B420DD36C__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // TransferProgress.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CTransferProgress window
  10. class CTransferProgress
  11. {
  12. // Construction
  13. public:
  14. CTransferProgress();
  15. CProgressCtrl m_progress;
  16. CStatic m_label;
  17. CStatic m_velocity;
  18. DWORD m_nStep;
  19. CFont m_font;
  20. CDC *m_pDC;
  21. static int m_nHeight;
  22. // Attributes
  23. public:
  24. // Operations
  25. public:
  26. BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd);
  27. void SetRange(DWORD nMaxRange);
  28. void SetPos(DWORD nStep);
  29. void SetLabel(LPCSTR szLabel);
  30. void SetVelocity(DWORD nVelocity);
  31. // Overrides
  32. // Implementation
  33. public:
  34. void MovePlace(CRect& rect);
  35. virtual ~CTransferProgress();
  36. protected:
  37. };
  38. /////////////////////////////////////////////////////////////////////////////
  39. //{{AFX_INSERT_LOCATION}}
  40. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  41. #endif // !defined(AFX_TRANSFERPROGRESS_H__4C0FDD36_5E57_4749_9F22_545B420DD36C__INCLUDED_)