BCGControlBar Pro for MFC
BOOL CBCGPHotSpotImageCtrl::AddHotSpot ( UINT  nID,
CRect  rect,
LPCTSTR  lpszToolTip = NULL,
LPCTSTR  lpszToolTipDescription = NULL 

Adds a new hot spot to the hot spot image control.

Nonzero if the hot spot has been added successfully; otherwise 0. The function fails and asserts in the debug mode if a hot spot with the same ID does exist.

Use this function to add new hot spots to a hot spot image control. nID should be unique ID of a hot spot being added. When the user clicks a hot spot, the parent will receive WM_COMMAND message with BN_CLICKED code. The handler should call GetHotSpot() in order to obtain ID of a hot spot that has been clicked.

nIDSpecifies the hot spot ID.
rectSpecifies the hot spot bounding rectangle.
lpszToolTipSpecifies the hot spot tooltip.
lpszToolTipDescriptionSpecifies the hot spot tooltip description.