2.3.1.10 TBCHeader

Toolbar control header information.


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

bSignature

bVersion

bFlagsTCR

tct

tcid

tbct

...

bPriority

width (optional)

...

height (optional)

bSignature (1 byte): Signed integer that specifies the toolbar control signature number. MUST be 0x03.

bVersion (1 byte): Signed integer that specifies the toolbar control version number. MUST be 0x01.

bFlagsTCR (1 byte): Structure of type TBCFlags (section 2.3.1.11) that specifies toolbar control flags.

tct (1 byte): Unsigned integer that specifies the toolbar control type. The value MUST be in the following table:

Value

Toolbar control type

0x01

Button control

0x02

Edit control

0x03

DropDown control

0x04

ComboBox control

0x06

SplitDropDown control

0x07

OCXDropDown control

0x09

GraphicDropDown control

0x0A

Popup control

0x0C

ButtonPopup control

0x0D

SplitButtonPopup control

0x0E

SplitButtonMRUPopup control

0x0F

Label control

0x10

ExpandingGrid control

0x12

Grid control

0x13

Gauge control

0x14

GraphicCombo control

0x15

Pane control

0x16

ActiveX control

tcid (2 bytes): Unsigned integer that specifies the toolbar control identifier (TCID) for this toolbar control. MUST be 0x0001 when the toolbar control is a custom toolbar control or MUST be equal to one of the values listed in [MS-CTDOC] section 2.2 or in [MS-CTXLS] section 2.2 when the toolbar control is not a custom toolbar control.

tbct (4 bytes): Structure of type TBCSFlags (section 2.3.1.12) that specifies toolbar control flags.

bPriority (1 byte): Unsigned integer that specifies the toolbar control priority for dropping and wrapping purposes. The value MUST be in the range 0x00 to 0x07. If the value equals 0x00, it is considered the default state. If it equals 0x01 the toolbar control will never be dropped from the toolbar and will be wrapped when needed. Otherwise, the higher the number the sooner the toolbar control will be dropped.

width (2 bytes): Unsigned integer that specifies the width, in pixels, of the toolbar control. MUST only exist if bFlagsTCR.fSaveDxy equals 1.

height (2 bytes): Unsigned integer that specifies the height, in pixels, of the toolbar control. MUST only exist if bFlagsTCR.fSaveDxy equals 1.