BCGControlBar Pro for MFC
static BOOL CBCGPTooltipManager::CreateToolTip ( CToolTipCtrl *&  pToolTip,
CWnd *  pWndParent,
UINT  nType 
)
static

Creates a tooltip control for the specified control type (s).

Returns
Nonzero if a tooltip has been created successfully.

Creates a tooltip for the specified control type and assigns it to the specified owner. The type is meant a type of control to be displaying this tooltip. 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

Specify BCGP_TOOLTIP_TYPE_ALL if you wish the newly created tooltip will be shown for all controls.

Parameters
pToolTipA reference to tooltip pointer. It will be set to the newly created tooltip when the function returns.
pWndParentParent of the tooltip.
nTypeType of the tooltip.