> the winapi version is possibly different
Perhaps it's simply down to winapi versions then??
Sticking in this hack near the top of menu.cpp seems to improve the
situation, here in my setup
#if _WIN32_WINNT < 0x0500
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#define MIIM_STRING 0x00000040
#define MIIM_BITMAP 0x00000080
#define MIIM_FTYPE 0x00000100
#define HBMMENU_CALLBACK ((HBITMAP) -1)
typedef struct tagMENUINFO
{
DWORD cbSize;
DWORD fMask;
DWORD dwStyle;
UINT cyMax;
HBRUSH hbrBack;
DWORD dwContextHelpID;
DWORD dwMenuData;
} MENUINFO, FAR *LPMENUINFO;
#endif
Could this be it??? Pretty it's not.
Regards
chris elliott wrote:
>
>
> Troels wrote:
>>
>> chris elliott wrote:
>>> I have now built the menu sample with Borland (5.5) and msys (gcc
>>> 3.4.5 winapi version not known) Both these have the correct alignment
>>
>> Quite a surprise. Are you sure about gcc, the codeblocks people see
>> the problem using MinGW 3.4.5
> yes, and I've just checked it compiles the code after #if
> defined(MIIM_BITMAP) && (_WIN32_WINNT >= 0x0500)
>
> the winapi version is possibly different
>
>> (http://forums.codeblocks.org/index.php?topic=5252.0)
>>
>> > #if defined(MIIM_BITMAP) && (_WIN32_WINNT >= 0x0500)
>> > WinStruct<MENUITEMINFO> mii;
>> > This next part is not compiled by vc6.
>>
>> IIRC I tried setting _WIN32_WINNT to 0x0500 in VC6,
> thanks, I my VC6 is failing on the MIIM_BITMAP half of the construct
>
> chris