📄 progressbarctrl.h
字号:
/*
============================================================================
Name : ProgressBarCtrl.h
Author : Hou maoqing
Version : 1.0
Copyright : Copyright (c) Hou maoqing 2008
Description : CProgressBarCtrl declaration
============================================================================
*/
#ifndef PROGRESSBARCTRL_H
#define PROGRESSBARCTRL_H
// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <coecntrl.h>
// CLASS DECLARATION
/**
* CProgressBarCtrl
*
*/
class CProgressBarCtrl : public CCoeControl
{
public:
// Constructors and destructor
~CProgressBarCtrl();
CProgressBarCtrl();
void ConstructL(const CCoeControl* aParent,const TRect& aRect);
public:
void SetTotalProgress(TInt nTotalProgress);
public:
void Draw(const TRect& aRect) const;
void SizeChanged();
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
private:
TInt m_nTotalProgress;
TInt m_nCurrentProgress;
};
#endif // PROGRESSBARCTRL_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -