if(cheatsList[item.lParam].status & 2)
if(cheatsList[item.lParam].enabled)
void GBACheatListDlg::OnEnable(){  HWND h = GetDlgItem(IDC_CHEAT_LIST);  int mark = ListView_GetSelectionMark(h);  int count = ListView_GetItemCount(h);    if(mark != -1) {    LVITEM item;    for(int i = 0; i < count; i++) {      memset(&item,0, sizeof(item));      item.mask = LVIF_PARAM|LVIF_STATE;      item.stateMask = LVIS_SELECTED;      item.iItem = i;      if(ListView_GetItem(h,                          &item)) {        if(item.state & LVIS_SELECTED) {          if(cheatsList[item.lParam].status & 2)            cheatsDisable(item.lParam);          else            cheatsEnable(item.lParam);        }      }    }    refresh(h);  }}