Commit 9a01be4c authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Add/update the listview structures to version 6.0.

parent 41a9b1bb
...@@ -2905,6 +2905,9 @@ typedef struct tagLVITEMA ...@@ -2905,6 +2905,9 @@ typedef struct tagLVITEMA
INT iImage; INT iImage;
LPARAM lParam; LPARAM lParam;
INT iIndent; /* (_WIN32_IE >= 0x0300) */ INT iIndent; /* (_WIN32_IE >= 0x0300) */
int iGroupId; /* (_WIN32_IE >= 0x560) */
UINT cColumns; /* (_WIN32_IE >= 0x560) */
PUINT puColumns; /* (_WIN32_IE >= 0x560) */
} LVITEMA, *LPLVITEMA; } LVITEMA, *LPLVITEMA;
typedef struct tagLVITEMW typedef struct tagLVITEMW
...@@ -2919,8 +2922,41 @@ typedef struct tagLVITEMW ...@@ -2919,8 +2922,41 @@ typedef struct tagLVITEMW
INT iImage; INT iImage;
LPARAM lParam; LPARAM lParam;
INT iIndent; /* (_WIN32_IE >= 0x0300) */ INT iIndent; /* (_WIN32_IE >= 0x0300) */
int iGroupId; /* (_WIN32_IE >= 0x560) */
UINT cColumns; /* (_WIN32_IE >= 0x560) */
PUINT puColumns; /* (_WIN32_IE >= 0x560) */
} LVITEMW, *LPLVITEMW; } LVITEMW, *LPLVITEMW;
#define LVITEM WINELIB_NAME_AW(LVITEM)
#define LPLVITEM WINELIB_NAME_AW(LPLVITEM)
#define LVITEM_V1_SIZEA CCSIZEOF_STRUCT(LVITEMA, lParam)
#define LVITEM_V1_SIZEW CCSIZEOF_STRUCT(LVITEMW, lParam)
#define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
#define LV_ITEM LVITEM
typedef struct LVSETINFOTIPA
{
UINT cbSize;
DWORD dwFlags;
LPSTR pszText;
int iItem;
int iSubItem;
} LVSETINFOTIPA, *PLVSETINFOTIPA;
typedef struct LVSETINFOTIPW
{
UINT cbSize;
DWORD dwFlags;
LPWSTR pszText;
int iItem;
int iSubItem;
} LVSETINFOTIPW, *PLVSETINFOTIPW;
#define LVSETINFOTIP WINELIB_NAME_AW(LVSETINFOTIP)
#define PLVSETINFOTIP WINELIB_NAME_AW(PLVSETINFOTIP)
/* ListView background image structs and constants /* ListView background image structs and constants
For _WIN32_IE version 0x400 and later. */ For _WIN32_IE version 0x400 and later. */
...@@ -2961,15 +2997,6 @@ typedef struct tagLVBKIMAGEW ...@@ -2961,15 +2997,6 @@ typedef struct tagLVBKIMAGEW
#define ListView_GetBkImage(hwnd, plvbki) \ #define ListView_GetBkImage(hwnd, plvbki) \
(BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)plvbki) (BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)plvbki)
#define LVITEM WINELIB_NAME_AW(LVITEM)
#define LPLVITEM WINELIB_NAME_AW(LPLVITEM)
#define LVITEM_V1_SIZEA CCSIZEOF_STRUCT(LVITEMA, lParam)
#define LVITEM_V1_SIZEW CCSIZEOF_STRUCT(LVITEMW, lParam)
#define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
#define LV_ITEM LVITEM
typedef struct tagLVCOLUMNA typedef struct tagLVCOLUMNA
{ {
UINT mask; UINT mask;
...@@ -3032,7 +3059,7 @@ typedef struct tagNMITEMACTIVATE ...@@ -3032,7 +3059,7 @@ typedef struct tagNMITEMACTIVATE
UINT uKeyFlags; UINT uKeyFlags;
} NMITEMACTIVATE, *LPNMITEMACTIVATE; } NMITEMACTIVATE, *LPNMITEMACTIVATE;
typedef struct tagLVDISPINFO typedef struct tagLVDISPINFOA
{ {
NMHDR hdr; NMHDR hdr;
LVITEMA item; LVITEMA item;
...@@ -3118,6 +3145,98 @@ typedef struct tagLVFINDINFOW ...@@ -3118,6 +3145,98 @@ typedef struct tagLVFINDINFOW
#define LVFINDINFO WINELIB_NAME_AW(LVFINDINFO) #define LVFINDINFO WINELIB_NAME_AW(LVFINDINFO)
#define LPLVFINDINFO WINELIB_NAME_AW(LPLVFINDINFO) #define LPLVFINDINFO WINELIB_NAME_AW(LPLVFINDINFO)
/* Groups relates structures */
typedef struct LVGROUPA
{
UINT cbSize;
UINT mask;
LPSTR pszHeader;
int cchHeader;
int iGroupId;
UINT stateMask;
UINT state;
UINT uAlign;
} LVGROUPA, *PLVGROUPA;
typedef struct LVGROUPW
{
UINT cbSize;
UINT mask;
LPWSTR pszHeader;
int cchHeader;
int iGroupId;
UINT stateMask;
UINT state;
UINT uAlign;
} LVGROUPW, *PLVGROUPW;
#define LVGROUP WINELIB_NAME_AW(LVGROUP)
#define PLVGROUP WINELIB_NAME_AW(PLVGROUP)
typedef struct LVGROUPMETRICS
{
UINT cbSize;
UINT mask;
UINT Left;
UINT Top;
UINT Right;
UINT Bottom;
COLORREF crLeft;
COLORREF crTop;
COLORREF crRight;
COLORREF crBottom;
COLORREF crRightHeader;
COLORREF crFooter;
} LVGROUPMETRICS, *PLVGROUPMETRICS;
typedef INT (*PFNLVGROUPCOMPARE)(INT, INT, VOID*);
typedef struct LVINSERTGROUPSORTEDA
{
PFNLVGROUPCOMPARE pfnGroupCompare;
LPVOID *pvData;
LVGROUPA lvGroup;
} LVINSERTGROUPSORTEDA, *PLVINSERTGROUPSORTEDA;
typedef struct LVINSERTGROUPSORTEDW
{
PFNLVGROUPCOMPARE pfnGroupCompare;
LPVOID *pvData;
LVGROUPW lvGroup;
} LVINSERTGROUPSORTEDW, *PLVINSERTGROUPSORTEDW;
#define LVINSERTGROUPSORTED WINELIB_NAME_AW(LVINSERTGROUPSORTED)
#define PLVINSERTGROUPSORTED WINELIB_NAME_AW(PLVINSERTGROUPSORTED)
/* Tile related structures */
typedef struct LVTILEINFO
{
UINT cbSize;
int iItem;
UINT cColumns;
PUINT puColumns;
} LVTILEINFO, *PLVTILEINFO;
typedef struct LVTILEVIEWINFO
{
UINT cbSize;
DWORD dwMask;
DWORD dwFlags;
SIZE sizeTile;
int cLines;
RECT rcLabelMargin;
} LVTILEVIEWINFO, *PLVTILEVIEWINFO;
typedef struct LVINSERTMARK
{
UINT cbSize;
DWORD dwFlags;
int iItem;
DWORD dwReserved;
} LVINSERTMARK, *PLVINSERTMARK;
typedef struct tagTCHITTESTINFO typedef struct tagTCHITTESTINFO
{ {
POINT pt; POINT pt;
...@@ -3135,7 +3254,15 @@ typedef struct tagNMLVCUSTOMDRAW ...@@ -3135,7 +3254,15 @@ typedef struct tagNMLVCUSTOMDRAW
NMCUSTOMDRAW nmcd; NMCUSTOMDRAW nmcd;
COLORREF clrText; COLORREF clrText;
COLORREF clrTextBk; COLORREF clrTextBk;
int iSubItem; int iSubItem; /* (_WIN32_IE >= 0x0400) */
DWORD dwItemType; /* (_WIN32_IE >= 0x560) */
COLORREF clrFace; /* (_WIN32_IE >= 0x560) */
int iIconEffect; /* (_WIN32_IE >= 0x560) */
int iIconPhase; /* (_WIN32_IE >= 0x560) */
int iPartId; /* (_WIN32_IE >= 0x560) */
int iStateId; /* (_WIN32_IE >= 0x560) */
RECT rcText; /* (_WIN32_IE >= 0x560) */
UINT uAlign; /* (_WIN32_IE >= 0x560) */
} NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW; } NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW;
typedef struct tagNMLVCACHEHINT typedef struct tagNMLVCACHEHINT
...@@ -3182,6 +3309,13 @@ typedef struct tagNMLVODSTATECHANGE ...@@ -3182,6 +3309,13 @@ typedef struct tagNMLVODSTATECHANGE
#define LPNM_ODSTATECHANGE LPNMLVODSTATECHANGE #define LPNM_ODSTATECHANGE LPNMLVODSTATECHANGE
#define NM_ODSTATECHANGE NMLVODSTATECHANGE #define NM_ODSTATECHANGE NMLVODSTATECHANGE
typedef struct NMLVSCROLL
{
NMHDR hdr;
int dx;
int dy;
} NMLVSCROLL, *LPNMLVSCROLL;
#define ListView_SetTextBkColor(hwnd,clrBk) \ #define ListView_SetTextBkColor(hwnd,clrBk) \
(BOOL)SendMessageA((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrBk)) (BOOL)SendMessageA((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
#define ListView_SetTextColor(hwnd,clrBk) \ #define ListView_SetTextColor(hwnd,clrBk) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment