00001 #ifndef __PROGRESSBAR_H__ 00002 #define __PROGRESSBAR_H__ 00003 00004 00005 00006 class CProgStatusBar : public CStatusBar { 00007 public: 00008 CProgStatusBar(); 00009 virtual ~CProgStatusBar(); 00010 CProgressCtrl& GetProgressCtrl() { 00011 return m_wndProgBar; 00012 } 00013 void OnProgress(UINT udPos); 00014 void OnProgressMinMax(int minPos, int maxPos); 00015 00016 protected: 00017 CProgressCtrl m_wndProgBar; // the progress bar 00018 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 00019 afx_msg void OnSize(UINT nType, int cx, int cy); 00020 DECLARE_MESSAGE_MAP() 00021 DECLARE_DYNAMIC(CProgStatusBar) 00022 }; 00023 00024 00025 #endif