Added LV_ITEMA and used a #define for LV_ITEM to
avoid mysterious compilo under Mingw32 2.95.2 Added #defines for SHGetFileInfo for Mingw32 2.95.2 in volume.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -100,7 +100,24 @@ typedef struct _LVITEMW {
|
|||||||
int iIndent;
|
int iIndent;
|
||||||
#endif
|
#endif
|
||||||
} LV_ITEMW;
|
} LV_ITEMW;
|
||||||
typedef LV_ITEM LV_ITEMA;
|
|
||||||
|
typedef struct tagLVITEMA
|
||||||
|
{
|
||||||
|
UINT mask;
|
||||||
|
int iItem;
|
||||||
|
int iSubItem;
|
||||||
|
UINT state;
|
||||||
|
UINT stateMask;
|
||||||
|
LPSTR pszText;
|
||||||
|
int cchTextMax;
|
||||||
|
int iImage;
|
||||||
|
LPARAM lParam;
|
||||||
|
#if (_WIN32_IE >= 0x0300)
|
||||||
|
int iIndent;
|
||||||
|
#endif
|
||||||
|
} LV_ITEMA;
|
||||||
|
|
||||||
|
#define LV_ITEM LV_ITEMA;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ListView_GetColumnWidth
|
#ifndef ListView_GetColumnWidth
|
||||||
|
@@ -41,6 +41,16 @@
|
|||||||
|
|
||||||
#include "wx/volume.h"
|
#include "wx/volume.h"
|
||||||
|
|
||||||
|
#include <shellapi.h>
|
||||||
|
|
||||||
|
#ifndef SHGetFileInfo
|
||||||
|
#ifdef UNICODE
|
||||||
|
#define SHGetFileInfo SHGetFileInfoW
|
||||||
|
#else
|
||||||
|
#define SHGetFileInfo SHGetFileInfoA
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SHGFI_ATTRIBUTES
|
#ifndef SHGFI_ATTRIBUTES
|
||||||
#define SHGFI_ATTRIBUTES 2048
|
#define SHGFI_ATTRIBUTES 2048
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user