Fix general options checkbox support
@@ -1313,7 +1313,18 @@ INT_PTR CALLBACK PhpOptionsGeneralDlgProc(
// }
//}
- if (header->code == LVN_ITEMCHANGED)
+ switch (header->code)
+ {
+ case NM_CLICK:
+ {
+ LPNMITEMACTIVATE itemActivate = (LPNMITEMACTIVATE)header;
+ BOOLEAN itemChecked;
+
+ itemChecked = ListView_GetCheckState(GetDlgItem(hwndDlg, IDC_SETTINGS), itemActivate->iItem) == BST_CHECKED;
+ ListView_SetCheckState(GetDlgItem(hwndDlg, IDC_SETTINGS), itemActivate->iItem, !itemChecked);
+ }
+ break;
+ case LVN_ITEMCHANGED:
{
LPNM_LISTVIEW listView = (LPNM_LISTVIEW)lParam;
@@ -1358,6 +1369,8 @@ INT_PTR CALLBACK PhpOptionsGeneralDlgProc(
}
}
}
+ break;
+ }
}
break;
//case WM_CTLCOLORSTATIC:
