Construction Methods
| Method | Description |
|---|---|
| CToolBarCtrl | Constructs a CToolBarCtrl object. |
| Create | Creates a toolbar control and attaches it to a CToolBarCtrl object. |
Attributes Methods
| Method | Description |
|---|---|
| IsButtonEnabled | Tells whether the specified button in a toolbar control is enabled. |
| IsButtonChecked | Tells whether the specified button in a toolbar control is checked. |
| IsButtonPressed | Tells whether the specified button in a toolbar control is pressed. |
| IsButtonHidden | Tells whether the specified button in a toolbar control is hidden. |
| IsButtonIndeterminate | Tells whether the state of the specified button in a toolbar control is indeterminate (gray). |
| SetState | Sets the state for the specified button in a toolbar control. |
| GetState | Retrieves information about the state of the specified button in a toolbar control, such as whether it is enabled, pressed, or checked. |
| GetButton | Retrieves information about the specified button in a toolbar control. |
| GetButtonCount | Retrieves a count of the buttons currently in the toolbar control. |
| GetItemRect | Retrieves the bounding rectangle of a button in a toolbar control. |
| GetRect | Retrieves the bounding rectangle for a specified toolbar button. |
| SetButtonStructSize | Specifies the size of the TBBUTTON structure. |
| GetButtonSize | Retrieves the current width and height of toolbar buttons, in pixels. |
| SetButtonSize | Sets the size of the buttons to be added to a toolbar control. |
| SetBitmapSize | Sets the size of the bitmapped images to be added to a toolbar control. |
| SetOwner | Sets the window to receive notification messages from the toolbar control. |
| SetRows | Sets the number of rows of buttons displayed in the toolbar. |
| GetRows | Retrieves the number of rows of buttons currently displayed in the toolbar. |
| SetCmdID | Sets the command identifier to be sent to the owner window when the specified button is pressed. |
| GetBitmapFlags | Gets flags associated with the toolbar’s bitmap. |
| GetDisabledImageList | Retrieves the image list that a toolbar control uses to display disabled buttons. |
| GetImageList | Retrieves the image list that a toolbar control uses to display buttons in their default state. |
| GetStyle | Retrieves the styles currently in use for a toolbar control. |
| GetMaxTextRows | Retrieves the maximum number of text rows displayed on a toolbar button. |
| IsButtonHighlighted | Checks the highlight state of the toolbar button. |
| SetButtonWidth | Sets the minimum and maximum button widths in the toolbar control. |
| SetDisabledImageList | Sets the image list that the toolbar control uses to display disabled buttons. |
| SetHotImageList | Sets the image list that the toolbar control uses to display hot buttons. |
| SetImageList | Sets the image list that the toolbar uses to display buttons that are in their default state. |
| SetIndent | Sets the indentation for the first button in a toolbar control. |
| SetMaxTextRows | Sets the maximum number of text rows displayed on a toolbar button. |
| SetStyle | Sets the styles for a toolbar control. |
| HitTest | Determines where a point lies in a toolbar control. |
Operations Methods
| method | Description |
|---|---|
| EnableButton | Enables or disables the specified button in a toolbar control. |
| CheckButton | Checks or clears a specified button in a toolbar control. |
| PressButton | Presses or releases the specified button in a toolbar control. |
| GetButtonInfo | Retrieves the information for a button in a toolbar. |
| SetButtonInfo | Sets the information for an existing button in a toolbar. |
| SetDrawTextFlags | Sets the flags in the Windows CE DrawText function, which is used to draw the text in the specified rectangle, formatted according to how the flags are set. |
| HideButton | Hides or shows the specified button in a toolbar control. |
| Indeterminate | Sets or clears the indeterminate (gray) state of the specified button in a toolbar control. |
| AddBitmap | Adds one or more bitmap button images to the list of button images available for a toolbar control. |
| AddButtons | Adds one or more buttons to a toolbar control. |
| InsertButton | Inserts a button in a toolbar control. |
| DeleteButton | Deletes a button from the toolbar control. |
| CommandToIndex | Retrieves the zero-based index for the button associated with the specified command identifier. |
| LoadImages | Loads bitmaps into a toolbar control's image list. |
| AddString | Adds a new string, passed as a resource identifier, to the toolbar’s internal list of strings. |
| AddStrings | Adds a new string or strings, passed as a pointer to a buffer of null-separated strings, to the toolbar’s internal list of strings. |
| AutoSize | Resizes a toolbar control. |