BCGSuite for MFC
CBCGPHotSpotImageCtrl

Detailed Description

The CBCGPHotSpotImageCtrl implements the functionality of a control with background image containing click able points (hot spots). When the user clicks a hot spot the CBCGPHotSpotImageCtrl controls sends the WM_COMMAND message with BN_CLICKED code to the parent.

Perform the following steps to add this control to your application:

+ Inheritance diagram for CBCGPHotSpotImageCtrl:

Public Member Functions

 CBCGPHotSpotImageCtrlConstructor.
 
 AddHotSpotAdds a new hot spot to the hot spot image control.
 
 AddHotSpotAdds a new hot spot to SVG-based hot spot image control.
 
 CreateInitializes a hot spot image control.
 
 DrawItemCalled by the framework when it needs to draw a hot spot image control.
 
 EnableAutoHideScrollBarsScpecifies whether control's scroll bars should be hidden when scroll bars are inactive (mouse cursor is located outside of scrollbar).
 
 EnableScrollBarsEnables or disables scroll bars.
 
 EnsureVisibleMakes a hot spot fully visible.
 
 GetBackgroundColorRetrieves the background color of a hot spot image control.
 
 GetHotSpotRetrieves the ID of current (clicked) hot spot.
 
 GetImageSizeRetrieves the size of control background image.
 
 GetScrollBarsStyleReturns the current scroll bar style.
 
 HitTestReturns a pointer to hot spot containing the specified point.
 
 IsScrollBarAutoHideEnabledTells whether control's scroll bars are auto-hidden.
 
 IsSVGBasedTells whether a control is SVG-based (loaded from SVG image).
 
 OnClickHotSpotCalled by the framework when user clicks hot spot.
 
 SetBackgroundColorSets background color.
 
 SetBufferLoads image from the memory buffer.
 
 SetHighlightHotAreaDefines an area to highlight.
 
 SetHotSpotToolTipSets hot spot tool tip.
 
 SetImageSets regular and hot images to the hot spot image control.
 
 SetImageSets regular and hot images to the hot spot image control.
 
 SetScrollBarsStyleSets style of scroll bars.
 

Additional Inherited Members

- Protected Member Functions inherited from CBCGPGestureBase
 OnGestureEventBeginCalled by the framework to handle BCGP_GID_BEGIN notification.
 
 OnGestureEventEndCalled by the framework to handle BCGP_GID_END notification.
 
 OnGestureEventPressAndTapCalled by the framework to handle BCGP_GID_PRESSANDTAP notification.
 
 OnGestureEventRotateCalled by the framework to handle BCGP_GID_ROTATE notification.
 
 OnGestureEventTwoFingerTapCalled by the framework to handle BCGP_GID_TWOFINGERTAP notification.
 
 OnGestureEventZoomCalled by the framework to handle BCGP_GID_ZOOM notification.
 
 ProcessGestureEventThis method should be called from WM_GESTURE message handler.