BCGControlBar Pro for MFC
virtual CBCGPProp* CBCGPProp::HitTest ( CPoint  point,
CBCGPProp::ClickArea *  pnArea = NULL 
)
virtual

Returns a pointer to a property object at the given point (in the client coordinates).

Returns
A pointer to a property object or NULL.

Tests the specified point and returns a pointer to a property object containing the point. Also, if any property contains the point, pnArea will contain one of the following values:

  • ClickExpandBox - cursor is located in the expand box area
  • ClickName - cursor is located in the item name area
  • ClickValue - cursor is located in the item value area
  • ClickDescription - cursor is located in the item description area
  • ClickMenuButton - cursor is located in the item menu button
  • ClickGroupArea - cursor is located in group caption area

The default implementation redirects the call to the property child items if the point is not contained within the current property.

Parameters
pointSpecifies the point to test (in the client coordinates)
pnAreaWhen the function returns will contain a code of the specific property area containing the point.