please dont rip this site Prev Next

WM_NCHITTEST Overview  Group

The WM_NCHITTEST message is sent to a window when the cursor moves, or when a mouse button is pressed or released. If the mouse is not captured, the message is sent to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.

WM_NCHITTEST 

xPos = LOWORD(lParam);  // horizontal position of cursor 

yPos = HIWORD(lParam);  // vertical position of cursor 

 

Parameters

xPos
Value of the low-order word of lParam. Specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the screen.
yPos
Value of the high-order word of lParam. Specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the screen.

Return Values

The return value of the DefWindowProc function is one of the following values, indicating the position of the cursor hot spot:

Value

Location of hot spot

HTBORDER

In the border of a window that does not have a sizing border

HTBOTTOM

In the lower horizontal border of a window

HTBOTTOMLEFT

In the lower-left corner of a window border

HTBOTTOMRIGHT

In the lower-right corner of a window border

HTCAPTION

In a title bar

HTCLIENT

In a client area

HTCLOSE

In a close button

HTERROR

On the screen background or on a dividing line between windows (same as HTNOWHERE, except that the DefWindowProc function produces a system beep to indicate an error)

HTGROWBOX

In a size box (same as HTSIZE)

HTHELP

In a Help button

HTHSCROLL

In a horizontal scroll bar

HTLEFT

In the left border of a window

HTMENU

In a menu

HTMAXBUTTON

In Maximize button

HTMINBUTTON

In Minimize button

HTNOWHERE

On the screen background or on a dividing line between windows

HTREDUCE

In a Minimize button

HTRIGHT

In the right border of a window

HTSIZE

In a size box (same as HTGROWBOX)

HTSYSMENU

In a System menu or in a Close button in a child window

HTTOP

In the upper horizontal border of a window

HTTOPLEFT

In the upper-left corner of a window border

HTTOPRIGHT

In the upper right corner of a window border

HTTRANSPARENT

In a window currently covered by another window

HTVSCROLL

In the vertical scroll bar

HTZOOM

In a Maximize button

Remarks

An application can use the MAKEPOINTS macro to convert the lParam parameter to a POINTS structure.

See Also

DefWindowProc, MAKEPOINTS, POINTS 


file: /Techref/os/win/api/win32/mess/src/msg26_5.htm, 6KB, , updated: 2000/4/7 11:20, local time: 2024/11/28 05:23,
TOP NEW HELP FIND: 
3.128.201.207:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.org/techref/os/win/api/win32/mess/src/msg26_5.htm"> WM_NCHITTEST</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .