"Mikolaj Zalewski" <miko...@zalewski.pl> wrote:

> +/* Note: TOOLBAR_DumpButton assumes the layout of the beginning of the 
> structure
> + * is the same as of TBBUTTON */
> typedef struct
> {
>     INT iBitmap;
> @@ -96,6 +98,9 @@ typedef struct
>     BYTE  fsStyle;
>     BYTE  bHot;
>     BYTE  bDropDownPressed;
> +#ifdef _WIN64
> +    BYTE bReserved64[4];
> +#endif
>     DWORD_PTR dwData;
>     INT_PTR iString;
>     INT nRow;

Then probably it would make sense to make TBBUTTON the first member of the above
structure. That would help in avoiding possible layout problems in future.

-- 
Dmitry.


Reply via email to