用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
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.
 
 
 
 
 
 

43 lines
1.2 KiB

#pragma once
namespace SOUI
{
class SScrollText : public SStatic , public ITimelineHandler
{
SOUI_CLASS_NAME(SScrollText,L"scrolltext")
public:
SScrollText(void);
~SScrollText(void);
void SetWindowText(const SStringT & strText);
protected:
virtual void OnNextFrame();
virtual void OnContainerChanged(ISwndContainer *pOldContainer,ISwndContainer *pNewContainer);
protected:
void OnPaint(IRenderTarget *pRT);
void OnSize(UINT nType, CSize size);
void OnShowWindow(BOOL bShow, UINT nStatus);
void OnDestroy();
void UpdateScrollInfo(CSize size);
SOUI_MSG_MAP_BEGIN()
MSG_WM_PAINT_EX(OnPaint)
MSG_WM_SIZE(OnSize)
MSG_WM_DESTROY(OnDestroy)
MSG_WM_SHOWWINDOW(OnShowWindow)
SOUI_MSG_MAP_END()
SOUI_ATTRS_BEGIN()
ATTR_INT(L"speed",m_nSpeed,FALSE)
ATTR_INT(L"rolltype",m_nRollType,FALSE)
SOUI_ATTRS_END()
int m_nSpeed;
int m_nOffset;
int m_nScrollWidth;
int m_nNextInterval;
int m_nRollType;//0Ê×λÏÎ½Ó 1 ·ÇÏνÓ
};
}