Jump to content

WM CONTEXTMENU

From EDM2

This message occurs when the operator requests a pop-up menu.

Syntax

param1
    POINTS ptspointerpos; /* Pointer position. */

param2
    USHORT usReserved;   /* Reserved value, 0. */
    USHORT fPointer;     /* Input device flag. */

Parameters

ptspointerpos (POINTS) - input
The pointer position is in window coordinates relative to the bottom-left corner of the window. This value is ignored if fPointer is not set to TRUE.
usReserved (USHORT) - input
Reserved value, 0.
fPointer (USHORT) - input
Input device flag.
TRUE: Message resulted from keyboard event.
FALSE: Message resulted from mouse pointer event.

Returns

rc (BOOL) - returns
Processed indicator.
TRUE: Message processed
FALSE: Message ignored

Remarks

This message is posted to the application queue associated with the window that has the focus, or with the window that is to receive the pointer-button information. This message will result from a mouse event, specified by the system value SV_CONTEXTMENU, or a keyboard event, specified by the system value SV_CONTEXTMENUB.

Default Processing

The default window procedure sends the message to the owner window if it exists, otherwise it takes no action on this message, other than to set result to FALSE.