Partager via


CPaneFrameWnd::HitTest

Determines what part of a mini-frame window is at a given point.

virtual LRESULT HitTest(
   CPoint point,
   BOOL bDetectCaption
);

Parameters

  • [in] point
    The point to test.

  • [in] bDetectCaption
    If TRUE, check the point against the caption. If FALSE, ignore the caption.

Return Value

One of the following values:

Value

Meaning

HTNOWHERE

The point is outside the mini-frame window.

HTCLIENT

The point is in the client area.

HTCAPTION

The point is on the caption.

HTTOP

The point is at the top.

HTTOPLEFT

The point is at the top left.

HTTOPRIGHT

The point is at the top right.

HTLEFT

The point is at the left.

HTRIGHT

The point is at the right.

HTBOTTOM

The point is at the bottom.

HTBOTTOMLEFT

The point is at the bottom left.

HTBOTTOMRIGHT

The point is at the bottom right.

Requirements

Header: afxpaneframewnd.h

See Also

Reference

CPaneFrameWnd Class

Hierarchy Chart