Added ListView_GetItemText macro.

oldstable
Kusanagi Kouichi 2003-06-23 03:35:19 +00:00 committed by Alexandre Julliard
parent 3dfdfbfa6f
commit c782721943
1 changed files with 18 additions and 0 deletions

View File

@ -3441,6 +3441,24 @@ typedef struct NMLVSCROLL
(HWND)SNDMSGW((hwndLV),LVM_EDITLABELW,(WPARAM)(int)(i), 0L)
#define ListView_EditLabel WINELIB_NAME_AW(ListView_EditLabel)
#define ListView_GetItemTextA(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \
{ \
LVITEMA _LVi;\
_LVi.iSubItem = _iSubItem;\
_LVi.cchTextMax = _cchTextMax;\
_LVi.pszText = _pszText;\
SNDMSGA(hwndLV, LVM_GETITEMTEXTA, (WPARAM)(i), (LPARAM)&_LVi);\
}
#define ListView_GetItemTextW(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \
{ \
LVITEMW _LVi;\
_LVi.iSubItem = _iSubItem;\
_LVi.cchTextMax = _cchTextMax;\
_LVi.pszText = _pszText;\
SNDMSGW(hwndLV, LVM_GETITEMTEXTW, (WPARAM)(i), (LPARAM)&_LVi);\
}
#define ListView_GetItemText WINELIB_NAME_AW(ListView_GetItemText)
#define ListView_SetItemTextA(hwndLV, i, _iSubItem, _pszText) \
{ LVITEMA _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
SNDMSGA(hwndLV, LVM_SETITEMTEXTA, (WPARAM)i, (LPARAM) (LVITEMA*)&_LVi);}