2.3.1.18 TBCBSFlags

Referenced by: TBCBSpecific

Contains flags for Button and ExpandingGrid type toolbar controls. The bit description begins from the least significant bit.


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

A

B

C

D

E

F

A - state (2 bits): Unsigned integer that specifies the toolbar control state. The value MUST be in the following table.

Value (value of bits in parenthesis)

Meaning

0x00 (00)

Button is up.

0x01 (01)

Button is down (pushed).

0x03 (11)

Button is in mixed state.

B - fAccelerator (1 bit): A bit that specifies whether the wstrAcc field of the TBCBSpecific structure (section 2.3.1.17) that contains this structure has been saved to the file. A value of 1 specifies that the wstrAcc field of the TBCBSpecific structure (section 2.3.1.17) that contains this structure MUST exist. If the value equals 1, the value of the fSaveUIStrings field of the TBCSFlags structure (section 2.3.1.12) contained by the TBCHeader structure (section 2.3.1.10) contained by the structure that contains the TBCData structure (section 2.3.1.13) that contains the TBCBSpecific structure (section 2.3.1.17) that contains this structure MUST be 1.

C - fCustomBitmap (1 bit): A bit that specifies whether the toolbar control has a custom icon. A value of 1 specifies that the icon and iconMask fields of the TBCBSpecific structure that contains this structure MUST exist.

D - fCustomBtnFace (1 bit): A bit that specifies whether the toolbar control is using an alternate icon as its own. A value of 1 specifies that the iBtnFace field of the TBCBSpecific structure that contains this structure MUST exist.

E - fHyperlinkType (2 bits): Unsigned integer that specifies the type of hyperlink associated with this toolbar control. The value MUST be in the following table.

Value (value of bits in parenthesis)

Hyperlink type

0x00 (00)

No hyperlink. This toolbar control does not have a hyperlink.

0x01 (01)

Open in browser. The hyperlink will be opened in the default browser.

0x02 (10)

Image link.  The hyperlink links to an image file.

 

F - reserved1 (1 bit): Reserved bit. SHOULD<9> be 1.