WM_NCRBUTTONDOWN

2.x

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.

Parameters

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.

Return Value

An application should return zero if it processes this message.

See Also

WM_NCHITTEST, WM_NCRBUTTONDBLCLK, WM_NCRBUTTONUP