BCGControlBar Pro for MFC
CBCGPBaseControlBar* CBCGPMDIFrameWnd::ControlBarFromPoint ( CPoint  point,
int  nSensitivity,
bool  bExactBar,
CRuntimeClass *  pRTCBarType 
) const

Given a point in screen coordinates returns a docking control bar that contains this point.

Returns
A valid point to a docking control bar or NULL, if there were no control found.

The call is redirected to the docking manager. See CBCGPDockManager::ControlBarFromPoint for details.

Parameters
pointSpecifies the point to check in the screen coordinates.
nSensitivityThe window rectangle of each checked control bar is inflated according to this value and a control bar may satisfy the search criteria even if the given point is not contained in a control bar
bExactBarIf TRUE, the nSencitivity parameter is ignored.
pRTCBarTypeIf not NULL the function iterates only control bars of the type specified.