Bagikan melalui


CDockablePane::HitTest

Specifies the location in a pane where the user clicks a mouse.

virtual int HitTest(
    CPoint point,
    BOOL bDetectCaption = FALSE
);

Parameters

  • [in] point
    Specifies the point to test.

  • [in] bDetectCaption
    TRUE if HTCAPTION should be returned if the point is on the pane's caption; otherwise, FALSE.

Return Value

One of the following values:

  • HTNOWHERE if point is not in the dockable pane.

  • HTCLIENT if point is in the client area of the dockable pane.

  • HTCAPTION if point is in the caption area of the dockable pane.

  • AFX_HTCLOSE if point is on the close button.

  • HTMAXBUTTON if point is on the pin button.

Requirements

Header: afxDockablePane.h

See Also

Reference

CDockablePane Class

Hierarchy Chart