CPaneFrameWnd::FrameFromPoint
Visual Studio 2012
Finds the mini-frame window that contains the specified point.
static CPaneFrameWnd* __stdcall FrameFromPoint( CPoint pt, int nSensitivity, CPaneFrameWnd* pFrameToExclude = NULL, BOOL bFloatMultiOnly = FALSE );