7.3 Mouse Enumerated Values

The following enumerated values are passed to the CWnd::OnMessage member functions that handle mouse messages, such as CWnd::OnMouseActivate and CWnd::OnNcLButtonDblClk.

Value Meaning

HTBOTTOM In the lower-horizontal border of the window.
HTBOTTOMLEFT In the lower-left corner of the window border.
HTBOTTOMRIGHT In the lower-right corner of the window border.
HTCAPTION In a caption area.
HTCLIENT In a client area.
HTERROR Same as HTNOWHERE except that default message processing produces a system beep to indicate an error.
HTGROWBOX In a size box.
HTHSCROLL In the horizontal scroll bar.
HTLEFT In the left border of the window.
HTMENU In a menu area.
HTNOWHERE On the screen background or on a dividing line between the windows.
HTREDUCE In a Minimize box.
HTRIGHT In the right border of the window.
HTSIZE Same as HTGROWBOX.
HTSYSMENU In a control-menu box (close box in child windows).
HTTOP In the upper-horizontal border of the window.
HTTOPLEFT In the upper-left corner of the window border.
HTTOPRIGHT In the upper-right corner of the window border.
HTTRANSPARENT In a window currently covered by another window.
HTVSCROLL In the vertical scroll bar.
HTZOOM In a Maximize box.