X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ec4107dfc11fe843b787ecf602e1f526b19d6b9..ae8c4b33a3272fba39c405542141e7c486b75136:/include/wx/msw/missing.h diff --git a/include/wx/msw/missing.h b/include/wx/msw/missing.h index 516a68b863..e630907950 100644 --- a/include/wx/msw/missing.h +++ b/include/wx/msw/missing.h @@ -240,6 +240,50 @@ struct HH_AKLINK BOOL fIndexOnFail; }; +// ---------------------------------------------------------------------------- +// SHGetFileInfo-related things +// ---------------------------------------------------------------------------- + +#ifndef SHGetFileInfo + #ifdef UNICODE + #define SHGetFileInfo SHGetFileInfoW + #else + #define SHGetFileInfo SHGetFileInfoA + #endif +#endif + +#ifndef SHGFI_ATTRIBUTES + #define SHGFI_ATTRIBUTES 2048 +#endif + +#ifndef SFGAO_READONLY + #define SFGAO_READONLY 0x00040000L +#endif + +#ifndef SFGAO_REMOVABLE + #define SFGAO_REMOVABLE 0x02000000L +#endif + +#ifndef SHGFI_DISPLAYNAME + #define SHGFI_DISPLAYNAME 512 +#endif + +#ifndef SHGFI_ICON + #define SHGFI_ICON 256 +#endif + +#ifndef SHGFI_SMALLICON + #define SHGFI_SMALLICON 1 +#endif + +#ifndef SHGFI_SHELLICONSIZE + #define SHGFI_SHELLICONSIZE 4 +#endif + +#ifndef SHGFI_OPENICON + #define SHGFI_OPENICON 2 +#endif + // ---------------------------------------------------------------------------- // Rich text control // ---------------------------------------------------------------------------- @@ -319,7 +363,7 @@ typedef struct _paraformat2 { #endif -#endif +#endif // wxUSE_RICHEDIT // ---------------------------------------------------------------------------- // Misc stuff