?? progresslistener.h
字號:
// ProgressListener.h: interface for the ProgressListener class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PROGRESSLISTENER_H__3F295135_E505_461A_A6EB_0F5988B22EAE__INCLUDED_)
#define AFX_PROGRESSLISTENER_H__3F295135_E505_461A_A6EB_0F5988B22EAE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class ProgressListener
{
public:
ProgressListener(CProgressCtrl *NewPBar, CStatic *NewLabel);
virtual ~ProgressListener();
//Use a printf() pattern, with one %d field.
void SetProgressMsg(CString NewStateName);
/*Sets the minimal time between UI updates, in ms.
Default is 500.*/
void SetUpdateFreq(unsigned int NewFreq) { MinTickDiff=NewFreq; }
//Sets the current progress to 0.
void Reset() { Update(0); }
//Sets the current progress to 0.
void SetMax(unsigned int NewMax);
void Update(unsigned int Progress);
private:
CProgressCtrl *MyPBar;
CStatic *StateLab;
CString ProgressPattern;
unsigned int ProgressMax, CurrProgress,LastTick, MinTickDiff;
};
#endif // !defined(AFX_PROGRESSLISTENER_H__3F295135_E505_461A_A6EB_0F5988B22EAE__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -