Files
wangchyz 02d1ed8832 1、统一了控件class name和interface name
2、修正了若干bug
2016-03-17 21:17:06 +08:00

27 lines
526 B
C++

#include "stdafx.h"
#include "UICheckBox.h"
namespace DuiLib
{
LPCTSTR CCheckBoxUI::GetClass() const
{
return DUI_CTR_CHECKBOX;
}
LPVOID CCheckBoxUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, DUI_CTR_CHECKBOX) == 0 ) return static_cast<CCheckBoxUI*>(this);
return COptionUI::GetInterface(pstrName);
}
void CCheckBoxUI::SetCheck(bool bCheck, bool bTriggerEvent)
{
Selected(bCheck, bTriggerEvent);
}
bool CCheckBoxUI::GetCheck() const
{
return IsSelected();
}
}