BCGControlBar Pro for MFC
CBCGPBaseControlBar* CBCGPMDIFrameWnd::ControlBarFromPoint ( CPoint  point,
int  nSensitivity,
DWORD &  dwAlignment,
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
dwAlignmentIf a control bar was found, this parameter will contain the closest to the specified point control bar side.
pRTCBarTypeIf not NULL the function iterates only control bars of the type specified.