BCGControlBar Pro for MFC
void CBCGPTooltipManager::SetTooltipParams ( UINT  nTypes,
CRuntimeClass *  pRTC = RUNTIME_CLASS(CBCGPToolTipCtrl),
CBCGPToolTipParams pParams = NULL 
)

Sets tooltip parameters.

Call this function to customize tooltip appearance by specifying tooltip parameters. You can associate parameters with custom tooltip runtime class and control type. When a control of the specified type (docking bar, toolbar and so on) is being created, the library instantiates a tooltip control using the runtime class and passes to the newly created tooltip the associated parameters.

All existing tooltip owners are sent the BCGM_UPDATETOOLTIPS messages and they must recreate their tooltips using CreateToolTip().

The library supports a combination of the following types:

  • BCGP_TOOLTIP_TYPE_DEFAULT 0x0001
  • BCGP_TOOLTIP_TYPE_TOOLBAR 0x0002
  • BCGP_TOOLTIP_TYPE_TAB 0x0004
  • BCGP_TOOLTIP_TYPE_MINIFRAME 0x0008
  • BCGP_TOOLTIP_TYPE_DOCKBAR 0x0010
  • BCGP_TOOLTIP_TYPE_EDIT 0x0020
  • BCGP_TOOLTIP_TYPE_BUTTON 0x0040
  • BCGP_TOOLTIP_TYPE_TOOLBOX 0x0080
  • BCGP_TOOLTIP_TYPE_PLANNER 0x0100
  • BCGP_TOOLTIP_TYPE_RIBBON 0x0200
  • BCGP_TOOLTIP_TYPE_CAPTIONBAR 0x0400
  • BCGP_TOOLTIP_TYPE_STATUSBAR 0x0800
  • BCGP_TOOLTIP_TYPE_GANTT 0x1000
  • BCGP_TOOLTIP_TYPE_GRID 0x2000
  • BCGP_TOOLTIP_TYPE_ALL 0xFFFF
Parameters
nTypesSpecifies control types.
pRTCRuntime class of custom tooltip.
pParamsTooltip parameters.