mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 11:53:21 +00:00
[ROSCTRLS.H] Add CListView::SetItemText and CListView::SetCheckState
This commit is contained in:
parent
88cf5b0a3c
commit
9411269841
1 changed files with 13 additions and 0 deletions
|
@ -183,6 +183,19 @@ public:
|
||||||
SendMessage(LVM_SETITEMSTATE, i, reinterpret_cast<LPARAM>(&item));
|
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)
|
int HitTest(LV_HITTESTINFO * phtInfo)
|
||||||
{
|
{
|
||||||
return (int)SendMessage(LVM_HITTEST, 0, reinterpret_cast<LPARAM>(phtInfo));
|
return (int)SendMessage(LVM_HITTEST, 0, reinterpret_cast<LPARAM>(phtInfo));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue