用于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.
 
 
 
 
 
 

37 lines
894 B

#include "stdafx.h"
#include "SRadioBox2.h"
namespace SOUI
{
SRadioBox2::SRadioBox2(void):m_pIcon(NULL),m_nTextOffset(0)
{
}
SRadioBox2::~SRadioBox2(void)
{
}
void SRadioBox2::OnPaint(IRenderTarget *pRT)
{
if(m_pSkin)
{
CRect rc;
GetClientRect(&rc);
int nState = 0;
if(GetState() & WndState_Check) nState = 2;
else if(GetState() & WndState_PushDown) nState = 2;
else if(GetState() & WndState_Hover) nState = 1;
m_pSkin->DrawByIndex(pRT,rc,nState);
}
if(m_pIcon)
{
CRect rcIcon=GetClientRect();
rcIcon.OffsetRect(m_ptIcon);
rcIcon=CRect(rcIcon.TopLeft(),m_pIcon->GetSkinSize());
m_pIcon->DrawByState(pRT,rcIcon, GetState());
}
SWindow::OnPaint(pRT);
}
}