_TBBUTTON = Record iBitmap : cint; idCommand : cint; fsState : BYTE; fsStyle : BYTE; bReserved : ARRAY[0..1] OF BYTE; // padding for alignment= dwData : DWORD_PTR; iString : INT_PTR; END; TBBUTTON = _TBBUTTON; I want to init record values when I define variables like following:
tbrbtns:array[0..5] of TBBUTTON =( (iBitmap:7;idCommand:10000;fsState:TBSTATE_ENABLED;fsStyle:TBSTYLE_BUTTON;(0,0);dwData:0;iString:0), ... ); but the field "bReserved" is a array,I don't know how to init a array field in a record,any one can help? Thanks
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal