2.9.48 CTB

Office

The CTB structure specifies a custom toolbar.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

name (variable)

...

cbTBData

tb (variable)

...

rVisualData (100 bytes)

...

...

iWCTB

reserved

unused

cCtls

rTBC (variable)

...

name (variable): A structure of type Xst that specifies the name of this custom toolbar.

cbTBData (4 bytes): A signed integer value that specifies the size, in bytes, of this structure excluding the name, cCtls, and rTBC fields. The value is given by the following formula.

CBTBData = sizeof tb plus sizeof rvisualdata + 12

tb (variable): A structure of type TB, as specified in [MS-OSHARED]. This structure contains toolbar data.

rVisualData (100 bytes): A zero-based index array of TBVisualData, as specified in [MS-OSHARED] structures. The number of elements in this array MUST be 5. The index of each structure in the array corresponds to a Word view number. Refer to the following table for the meaning of each TBVisualData, as defined in [MS-OSHARED] structures, according to its position in this array.

Array index of structure

Meaning of TBVisualData

0

Contains the visual information for this toolbar to be used when the application is in Normal view.

1

Contains the visual information for this toolbar to be used when the application is in Print Preview view.

2

Contains the visual information for this toolbar to be used when the application is in full screen view.

3

Contains the visual information for this toolbar to be used when the application is in both Print Preview view and full screen view.

4

Contains the visual information for this toolbar to be used when the application is in Hyperlink view<211>.

iWCTB (4 bytes): A signed integer that specifies the zero-based index of the Customization structure that contains this structure in the rCustomizations array that contains the Customization structure that contains this structure. The value MUST be greater or equal to 0x00000000 and MUST be less than the value of the cCust field of the CTBWRAPPER structure that contains the rCustomizations array that contains the Customization structure that contains this structure.

reserved (2 bytes): This MUST be 0x0000 and MUST be ignored.

unused (2 bytes): This is undefined and MUST be ignored.

cCtls (4 bytes): A signed integer that specifies the number of toolbar controls in this toolbar.

rTBC (variable): A zero-based index array of TBC structures. The number of elements in this array MUST equal cCtls.

Show: