ProgBar.h
Upload User: nhyuejuan
Upload Date: 2013-12-02
Package Size: 171k
Code Size: 1k
Category:

StatusBar

Development Platform:

Visual C++

  1. ////////////////////////////////////////////////////////////////
  2. // MSDN Magazine -- January 2003
  3. // If this code works, it was written by Paul DiLascia.
  4. // If not, I don't know who wrote it.
  5. // Compiles with VC 6.0 or VS.NET on Windows XP. Tab size=3.
  6. //
  7. #pragma once
  8. //////////////////
  9. // Status bar with progress control.
  10. //
  11. class CProgStatusBar : public CStatusBar {
  12. public:
  13. CProgStatusBar();
  14. virtual ~CProgStatusBar();
  15. CProgressCtrl& GetProgressCtrl() {
  16. return m_wndProgBar;
  17. }
  18. void OnProgress(UINT pct);
  19. protected:
  20. CProgressCtrl m_wndProgBar;  // the progress bar
  21. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  22. afx_msg void OnSize(UINT nType, int cx, int cy);
  23. DECLARE_MESSAGE_MAP()
  24. DECLARE_DYNAMIC(CProgStatusBar)
  25. };