mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[ROSCTRLS.H] Add CListView::SetItemText and CListView::SetCheckState
This commit is contained in:
committed by
Mark Jansen
parent
88cf5b0a3c
commit
9411269841
@@ -183,6 +183,19 @@ public:
|
||||
SendMessage(LVM_SETITEMSTATE, i, reinterpret_cast<LPARAM>(&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<LPARAM>(phtInfo));
|
||||
|
||||
Reference in New Issue
Block a user