if(siCTemp->dwAttributes & SIC_SELECTED)
if(siCTemp->dwAttributes & SIC_DISABLED) hbmpCheckBox = hbmpBoxCheckedDisabled; else if(siCTemp->dwAttributes & SIC_SELECTED)
void DrawCheck(LPDRAWITEMSTRUCT lpdis){  siC     *siCTemp  = NULL;  HDC     hdcMem;  HBITMAP hbmpCheckBox;  siCTemp = SiCNodeGetObject(lpdis->itemID, FALSE);  if(siCTemp != NULL)  {    if(siCTemp->dwAttributes & SIC_SELECTED)      hbmpCheckBox = hbmpBoxChecked;    else      hbmpCheckBox = hbmpBoxUnChecked;    SendMessage(lpdis->hwndItem, LB_SETITEMDATA, lpdis->itemID, (LPARAM)hbmpCheckBox);    if((hdcMem = CreateCompatibleDC(lpdis->hDC)) != NULL)    {      SelectObject(hdcMem, hbmpCheckBox);      // BitBlt() is used to prepare the checkbox icon into the list box item's device context.      // The SendMessage() function using LB_SETITEMDATA performs the drawing.      BitBlt(lpdis->hDC,             lpdis->rcItem.left + 2,             lpdis->rcItem.top + 2,             lpdis->rcItem.right - lpdis->rcItem.left,             lpdis->rcItem.bottom - lpdis->rcItem.top,             hdcMem,             0,             0,             SRCCOPY);      DeleteDC(hdcMem);    }  }}