MCPcopy Create free account
hub / github.com/SOUI2/soui / GetSelectedSiblingInGroup

Method GetSelectedSiblingInGroup

SOUI/src/control/SCmnCtrl.cpp:1186–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1184}
1185
1186SWindow * SRadioBox::GetSelectedSiblingInGroup()
1187{
1188 SWindow *pParent=GetParent();
1189 SASSERT(pParent);
1190 SWindow *pSibling=pParent->GetWindow(GSW_FIRSTCHILD);
1191 while(pSibling)
1192 {
1193 if(pSibling->IsClass(GetClassName()))
1194 {
1195 SRadioBox * pRadio=(SRadioBox*)pSibling;
1196 if(pRadio->IsChecked()) return pRadio;
1197 }
1198 pSibling=pSibling->GetWindow(GSW_NEXTSIBLING);
1199 }
1200 return NULL;
1201}
1202
1203
1204HRESULT SRadioBox::OnAttrCheck( const SStringW& strValue, BOOL bLoading )

Calls 4

GetClassNameFunction · 0.85
IsClassMethod · 0.80
IsCheckedMethod · 0.80
GetWindowMethod · 0.45

Tested by

no test coverage detected