}
else { SiCNodeSetAttributes(dwIndex, SIC_SELECTED, TRUE, FALSE); bMoreToResolve = ResolveDependencies(dwIndex);  while(bMoreToResolve) bMoreToResolve = ResolveDependencies(-1); }
void ToggleCheck(HWND hwndListBox, DWORD dwIndex){  BOOL bMoreToResolve;  // Checks to see if the checkbox is checked or not checked, and  // toggles the node attributes appropriately.  if(SiCNodeGetAttributes(dwIndex) & SIC_SELECTED)  {    SiCNodeSetAttributes(dwIndex, SIC_SELECTED, FALSE);  }  else  {    SiCNodeSetAttributes(dwIndex, SIC_SELECTED, TRUE);    bMoreToResolve = ResolveDependencies(dwIndex);    while(bMoreToResolve)    {      bMoreToResolve = ResolveDependencies(-1);    }  }  InvalidateLBCheckbox(hwndListBox);}