进度条类 More...
#include <SCmnCtrl.h>
Public Member Functions | |
SProgress () | |
构造函数 | |
BOOL | SetValue (int nValue) OVERRIDE |
设置进度条进度值 | |
int | GetValue () SCONST OVERRIDE |
获取进度值 | |
void | SetRange (int nMin, int nMax) OVERRIDE |
设置进度值最小大值 | |
void | GetRange (int *pMin, int *pMax) SCONST OVERRIDE |
获取进度值最小大值 | |
BOOL | IsVertical () SCONST OVERRIDE |
判断进度条是否为竖直状态 | |
Protected Member Functions | |
void | GetDesiredSize (SIZE *psz, int wid, int hei) OVERRIDE |
获取预期大小 | |
virtual void | OnColorize (COLORREF cr) |
处理颜色化事件 | |
virtual void | OnScaleChanged (int scale) |
处理缩放变化事件 | |
void | OnPaint (IRenderTarget *pRT) |
绘制控件 | |
int | OnCreate (void *) |
处理创建事件 | |
virtual HRESULT | SetAttribute (const SNS::SStringW &amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;strValue, BOOL bLoading=FALSE) |
Protected Attributes | |
int | m_nMinValue |
进度最小值 | |
int | m_nMaxValue |
进度最大值 | |
int | m_nValue |
进度值 | |
BOOL | m_bShowPercent |
是否显示百分比 | |
BOOL | m_bVertical |
是否竖直状态 | |
SAutoRefPtr< ISkinObj > | m_pSkinBg |
背景资源 | |
SAutoRefPtr< ISkinObj > | m_pSkinPos |
前景资源 | |
进度条类
进度条控件。 @usage <progress bgskin=xx posskin=xx min=0 max=100 value=10,showpercent=0/>
Definition at line 671 of file SCmnCtrl.h.
SProgress::SProgress | ( | ) |
构造函数
Definition at line 869 of file SCmnCtrl.cpp.
|
protected |
void SProgress::GetRange | ( | int * | pMin, |
int * | pMax ) |
|
inline |
|
inline |
|
protectedvirtual |
处理颜色化事件
cr | 颜色 |
Reimplemented from SWindow.
Reimplemented in SSliderBar.
Definition at line 985 of file SCmnCtrl.cpp.
|
protected |
|
protected |
|
protectedvirtual |
处理缩放变化事件
scale | 缩放比例 |
Reimplemented from SWindow.
Reimplemented in SSliderBar.
Definition at line 994 of file SCmnCtrl.cpp.
|
inlineprotectedvirtual |
Reimplemented from SWindow.
Definition at line 793 of file SCmnCtrl.h.
void SProgress::SetRange | ( | int | nMin, |
int | nMax ) |
BOOL SProgress::SetValue | ( | int | nValue | ) |
|
protected |
是否显示百分比
Definition at line 771 of file SCmnCtrl.h.
|
protected |
是否竖直状态
Definition at line 776 of file SCmnCtrl.h.
|
protected |
进度最大值
Definition at line 761 of file SCmnCtrl.h.
|
protected |
进度最小值
Definition at line 756 of file SCmnCtrl.h.
|
protected |
进度值
Definition at line 766 of file SCmnCtrl.h.
|
protected |
背景资源
Definition at line 781 of file SCmnCtrl.h.
|
protected |
前景资源
Definition at line 786 of file SCmnCtrl.h.