mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +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));
|
||||
}
|
||||
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue