BCGControlBar Pro for MFC
CBCGPCaptionButton

Detailed Description

The CBCGPCaptionButton class implements the functionality of a button displayed on the caption of docking control bars or mini-frame windows. Usually, caption buttons are created automatically by the framework.

You can derive a class from CBCGPMiniFrameWnd and use the protected method CBCGPMiniFrameWnd::AddButton to add caption buttons to a mini-frame window.

There are two types of caption buttons, their command IDs defined in BCGPMiniFrameWnd.h:

  • BCGP_CAPTION_BTN_PIN: the pin button displayed when a docking control bar can be switched to the autohide mode.
  • BCGP_CAPTION_BTN_CLOSE: the close button displayed when a control bar can be closed (hidden).
    See also
    CBCGPMiniFrameWnd, CBCGPDockingControlBar

Inherits CObject.

Inherited by CBCGPCaptionMenuButton, CBCGPDockingBarScrollButton, and CBCGPFrameCaptionButton.

Public Member Functions

 GetCustomToolTipCalled by the framework to obtain custom tooltip text for the caption button.
 
 GetHitReturns the hit test of a caption button.