如题

解决方案 »

  1.   

    WindowFromPoint
    The WindowFromPoint function retrieves a handle to the window that contains the specified point. HWND WindowFromPoint(
      POINT Point  // point
    );
    Parameters
    Point 
    [in] Specifies a POINT structure that defines the point to be checked. 
    Return Values
    The return value is a handle to the window that contains the point. If no window exists at the given point, the return value is NULL. If the point is over a static text control, the return value is a handle to the window under the static text control.