WM_NCRBUTTONDOWN
wHitTestCode = wParam; /* hit-test code */
xPos = LOWORD(lParam); /* horizontal cursor position */
yPos = HIWORD(lParam); /* vertical cursor position */
The WM_NCRBUTTONDOWN message is sent to a window when the user presses the right 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.