Esempio n. 1
0
void SRadioBox::SetCheck( BOOL bCheck )
{
    if(IsChecked() == bCheck) return;
    if(bCheck)
    {
        SRadioBox *pCurChecked=(SRadioBox*)GetSelectedSiblingInGroup();
        if(pCurChecked) pCurChecked->SetCheck(FALSE);
    }
    SWindow::SetCheck(bCheck);
}
Esempio n. 2
0
void SRadioBox::OnStateChanging( DWORD dwOldState,DWORD dwNewState )
{
    if((dwNewState & WndState_Check) && !(dwOldState & WndState_Check))
    {
        SRadioBox *pCurChecked=(SRadioBox*)GetSelectedSiblingInGroup();
        if(pCurChecked)
        {
            pCurChecked->GetEventSet()->setMutedState(true);
            pCurChecked->SetCheck(FALSE);
            pCurChecked->GetEventSet()->setMutedState(false);
        }
    }
}