diff --git a/sdk/include/reactos/rosctrls.h b/sdk/include/reactos/rosctrls.h index e81a0c4cfbb..6dd4ba9fa39 100644 --- a/sdk/include/reactos/rosctrls.h +++ b/sdk/include/reactos/rosctrls.h @@ -183,6 +183,19 @@ public: SendMessage(LVM_SETITEMSTATE, i, reinterpret_cast(&item)); } + BOOL SetItemText(int i, int subItem, LPCWSTR text) + { + LVITEMW item; + item.iSubItem = subItem; + item.pszText = (LPWSTR)text; + return SendMessage(LVM_SETITEMTEXT, i, (LPARAM)&item); + } + + void SetCheckState(int i, BOOL check) + { + SetItemState(i, INDEXTOSTATEIMAGEMASK((check)?2:1), LVIS_STATEIMAGEMASK); + } + int HitTest(LV_HITTESTINFO * phtInfo) { return (int)SendMessage(LVM_HITTEST, 0, reinterpret_cast(phtInfo));