Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Properties

m_bGradientBkVertical Specifies the vertical gradient background if m_bGradientBkVertical is set to true or the horizontal otherwise.
m_clrBkLT Specifies the color of the left or top edge that is used for painting the background of toolbox control. The default color of the m_clrBkLT property is specified with COLORREF(-1L).
m_clrBkRB Specifies the color of the right or bottom edge that is used for painting the background of toolbox control. The default color of the m_clrBkRB property is specified with COLORREF(-1L).
m_iconTreeBoxCollapsed Specifies the icon object used for painting the collapsed tree box for the group item. If the icon object is empty, either the standard tree box or tree box icon like in the Visual Studio 2005 toolbox is used (indicated by the __TBWS_ICONS_AS_TREE_BOXES style).
m_iconTreeBoxExpanded �Specifies the icon object used for painting the expanded tree box for the group item. If the icon object is empty, either the standard tree box or tree box icon like in the Visual Studio 2005 toolbox is used (indicated by the __TBWS_ICONS_AS_TREE_BOXES style).

Classes

ActivateFirstGroup Activates the first/last group of controls in the toolbox and Returns a pointer to the new active group.
ActivateFirstItem Activates the first/last item in the current active group and Returns a pointer to the new active item.
ActivateNextGroup Activates the next/previous group of controls in the toolbox and Returns a pointer to the new active group.
ActivateNextItem Activates the next/previous item in the current active group and Returns a pointer to the new active item.
ActivateNextPage Activates the next/previous control one page up/down in the current active group and Returns a pointer to the new active control.
CExtToolBoxWnd Default constructor.
Create Creates the toolbox window.
GetContentExpandWnd Returns a reference to the CExtContentExpandWnd window which is used by the toolbox for expanding partially visible controls.
GetEditorHWND Returns a window handle of the in-place editor for controls. If no editing is being performed, the method returns NULL.
GetToolBoxWndStyle Returns a DWORD value with toolbox styles (i.e. __TBWS_*** flags).
GetToolTipCtrl Returns a reference to the tooltip window associated with the toolbox.
ItemBeginEdit Activates a window of the control's in-place editor. By default, a toolbox creates the edit control.
ItemExpand Expands or collapses the group item and returns true if succeeded. NOTE: Use this method only if the __TBWS_MULTIPLE_EXPANDED_GROUPS style is turned on.
ItemExpandAll Expands or collapses all group items in the toolbox and returns true if succeeded. NOTE: Used this method only if the __TBWS_MULTIPLE_EXPANDED_GROUPS style is turned on.
ItemGetActive Returns the active group in the toolbox. If NULL, there is no active group at the moment.
ItemGetRect Returns a rectangular area of the visible item. If the item specified by pTBCI is invisible, the method returns an empty rectangular.
ItemGetRoot Returns a pointer to the root item, which is a single item that cannot be removed. Its child items make up toolbox groups.
ItemHitTest Returns a pointer to the item whose area includes the ptClient point. The returned value NULL means ptClient is outside any of the regions defined by items of the toolbox.
ItemInsert Inserts a new control/group.
ItemIsExpanded Returns true if the group item specified with the pTBCI argument is expanded. NOTE: Use this method only if the __TBWS_MULTIPLE_EXPANDED_GROUPS style is turned on.
ItemRemove Removes an item and all its child items or removes only child items.
ItemRemoveAll Removes all items from the toolbox.
ItemSetActive Makes a group active or makes a selected item in the active group active.
ModifyToolBoxWndStyle Modifies the toolbox styles and returns the previous styles.
RegisterToolBoxWndClass Registers a new window class for the toolbox.
ScrollPosGet Returns the scrolling position in the active group. The returned value must be greater than or equal to zero and less than or equal to the scrolling size in the active group. The scrolling size can be got with ScrollSizeGet().
ScrollPosSet Sets a current scrolling position in the active group. This value, identified by nScrollPos, should be greater than or equal to zero and less than or equal to the scrolling size in the active group. The scrolling size can be got with ScrollSizeGet().
ScrollSizeGet Returns the scrolling size in the active group. If 0, all items are visible and scrolling is unavailable.
UpdateToolBoxWnd Redraws the toolbox and recalculates the mutual layout of controls in it.

Overridables

OnToolBoxWndCancelItemEditor This method is called when the item's in-place edit window is being canceled.
OnToolBoxWndCanDoItemDrag This method enables to determine whether the user can start dragging an item.
OnToolBoxWndCanHandleHover Use this method when you need to determine whether it is possible to set hover styles for toolbox items when moving the mouse pointer over the toolbox.
OnToolBoxWndDeactivateEditor This method is called when the item's in-place edit window is being closed.
OnToolBoxWndDoItemTextChanging This method is called when the item text needs to be changed.
OnToolBoxWndDrawEntire Use this method when you need to redraw the entire toolbox contents.
OnToolBoxWndDrawItem Redraws the item contents (the text and icon).
OnToolBoxWndDrawScrollButton Use this method when you need to draw the background of the scrolling button.
OnToolBoxWndDrawTreeBox Use this method when you need to draw your own tree box for the toolbox.
OnToolBoxWndEraseEntire Use this method when you need to redraw the toolbox background.
OnToolBoxWndEraseItem Call this method if you need to redraw the item background.
OnToolBoxWndEraseScrollButton Use this method when you need to draw scrolling button's background.
OnToolBoxWndItemActivate This method is called when the toolbox active group has changed.
OnToolBoxWndItemHoverChange This method is called when moving the mouse over the toolbox.
OnToolBoxWndItemInsert This method is called immediately after inserting a new item into the toolbox. It enables you to initialize the data dealing with the inserted item.
OnToolBoxWndItemRemove This method is called immediately after you start removing an item from the toolbox. It enables you to perform necessary operations on the data dealing with the removed item.
OnToolBoxWndItemSelChange This method is called when the selected item in the toolbox active group has changed.
OnToolBoxWndMasureItem If you need to measure an item, use this method. It allows you to implement items with different sizes, on the basis of your own measure algorithms.
OnToolBoxWndMeasureScrollStepSize This method is called when scrolling parameters need to be measured. It returns the scrolling step, which can differ depending on the step number. The method enables to implement accelerative scrolling.
OnToolBoxWndMeasureScrollTimerPeriod This method is called when the scrolling time period needs to be measured. It enables to determine the scrolling speed.
OnToolBoxWndQueryItemFont Use the method when you want to get the font that is used for redrawing and measuring the item text. It allows you to implement items with different fonts.
OnToolBoxWndQueryItemIcon Use this method when you need to get the item icon and the icon size. It allows you to store item icons outside toolbox items. In the toolbox this method returns the item icon, which is stored in the pTBCI item directly.
OnToolBoxWndQueryItemText Call this method when you want to get the item text. The metod allows you to store the item captions outside the items. In the toolbox, the method returns the text, which is stored in the pTBCI item directly.
OnToolBoxWndStartItemDrag This method is called when the user starts dragging an item.
OnToolBoxWndStartItemEditor This method is called when the item's in-place edit window is being created and activated. It returns a handle of the window implementing the item's editor. When used in the toolbox, the method creates an edit control by default. It allows you to use any window for the toolbox item editor.

See Also

CExtToolBoxWnd Overview | Hierarchy Chart