WM_NCMBUTTONUP
wHitTestCode = wParam; /* hit-test code */
xPos = LOWORD(lParam); /* horizontal cursor position */
yPos = HIWORD(lParam); /* vertical cursor position */
The WM_NCMBUTTONUP message is sent to a window when the user releases the left mouse button while the cursor is within a nonclient area of the window.
wHitTestCode
Value of wParam. Specifies the code returned by WM_NCHITTEST. For more information, see the description of the WM_NCHITTEST message.
xPos
Value of the low-order word of lParam. Specifies the x-coordinate of the cursor, as a screen coordinate.
yPos
Value of the high-order word of lParam. Specifies the y-coordinate of the cursor, as a screen coordinate.
An application should return zero if it processes this message.