mirror of
https://github.com/duilib/duilib.git
synced 2026-10-18 06:46:58 +08:00
02d1ed8832
2、修正了若干bug
27 lines
526 B
C++
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();
|
|
}
|
|
}
|