| BOOL CBCGPHotSpotImageCtrl::AddHotSpot | ( | UINT | nID, |
| CRect | rect, | ||
| LPCTSTR | lpszToolTip = NULL, |
||
| LPCTSTR | lpszToolTipDescription = NULL |
||
| ) |
Adds a new hot spot to the hot spot image control.
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.
| nID | Specifies the hot spot ID. |
| rect | Specifies the hot spot bounding rectangle. |
| lpszToolTip | Specifies the hot spot tooltip. |
| lpszToolTipDescription | Specifies the hot spot tooltip description. |