You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
620 B
35 lines
620 B
5 months ago
|
#pragma once
|
||
|
|
||
|
namespace SOUI
|
||
|
{
|
||
|
class SProgressRing : public SProgress
|
||
|
{
|
||
|
SOUI_CLASS_NAME(SProgressRing,L"progressRing")
|
||
|
public:
|
||
|
SProgressRing(void);
|
||
|
~SProgressRing(void);
|
||
|
|
||
|
SOUI_ATTRS_BEGIN()
|
||
|
ATTR_COLOR(L"colorBack", m_crBackground, TRUE)
|
||
|
ATTR_COLOR(L"colorFore", m_crForeground, TRUE)
|
||
|
ATTR_FLOAT(L"arcRate",m_fArcRate,TRUE)
|
||
|
SOUI_ATTRS_END()
|
||
|
|
||
|
protected:
|
||
|
virtual void OnColorize(COLORREF cr);
|
||
|
protected:
|
||
|
void OnPaint(IRenderTarget *pRT);
|
||
|
|
||
|
SOUI_MSG_MAP_BEGIN()
|
||
|
MSG_WM_PAINT_EX(OnPaint)
|
||
|
SOUI_MSG_MAP_END()
|
||
|
|
||
|
|
||
|
COLORREF m_crBackground;
|
||
|
COLORREF m_crForeground;
|
||
|
float m_fArcRate;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|