Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
CWnd::OnNcHitTest
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  afx_msg UINT OnNcHitTest( CPoint  point  );
 
  Parameter   Description
 
  <point>     Contains the x- and y-coordinates of the cursor. These
              coordinates are always screen coordinates.
 
  Remarks
 
  Called for the CWnd that contains the cursor (or the CWnd that used the
  SetCapture member function to capture the mouse input) every time the
  mouse is moved.
 
  This message-handler member function calls the Default member
  function. Override this member function in your derived class to handle
  the WM_NCHITTEST message.
 
  Return Value
 
  One of the following values:
 
  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 the DefWindowProc member
                  function 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
                  windows.
 
  HTREDUCE        In a Minimize button.
 
  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 button.
 
  See Also
 
  CWnd::Default, CWnd::GetCapture, WM_NCHITTEST
 
 
                                     -♦-