CN CONTEXTMENU: Difference between revisions
Appearance
Created page with "This message is sent by the container control to its owner when the container receives a WM_CONTEXTMENU message. ==Syntax== <PRE> param1 USHORT id; →Container control ID.: USHORT CN_CONTEXTMENU; →Notification code.: param2 PRECORDCORE pRecord; →Pointer to the RECORDCORE structure.: </PRE> ==Parameters== ;id (USHORT) - Input : Container control ID. ;CN_CONTEXTMENU (USHORT) - Input : Notification code. ;pRecord (PRECORDCORE)..." |
No edit summary |
||
Line 15: | Line 15: | ||
;CN_CONTEXTMENU ([[USHORT]]) - Input | ;CN_CONTEXTMENU ([[USHORT]]) - Input | ||
: Notification code. | : Notification code. | ||
;pRecord ([[ | ;pRecord (P[[RECORDCORE]]) - Input | ||
: Pointer to the [[RECORDCORE]] structure. | : Pointer to the [[RECORDCORE]] structure. | ||
: If the user is using a pointing device, this [[RECORDCORE]] structure is the structure that the pointing device pointer is over. If the pointing device pointer is over white space, this field is NULL. | : If the user is using a pointing device, this [[RECORDCORE]] structure is the structure that the pointing device pointer is over. If the pointing device pointer is over white space, this field is NULL. |
Latest revision as of 22:04, 20 April 2025
This message is sent by the container control to its owner when the container receives a WM_CONTEXTMENU message.
Syntax
param1 USHORT id; /* Container control ID. */ USHORT CN_CONTEXTMENU; /* Notification code. */ param2 PRECORDCORE pRecord; /* Pointer to the RECORDCORE structure. */
Parameters
- id (USHORT) - Input
- Container control ID.
- CN_CONTEXTMENU (USHORT) - Input
- Notification code.
- pRecord (PRECORDCORE) - Input
- Pointer to the RECORDCORE structure.
- If the user is using a pointing device, this RECORDCORE structure is the structure that the pointing device pointer is over. If the pointing device pointer is over white space, this field is NULL.
- If the user is using the keyboard, this RECORDCORE structure is the structure that has the selection cursor.
Returns
- ulReserved (ULONG) - returns
- Reserved value, should be 0.
Remarks
None.
Default Processing
The default window procedure does not expect to receive this notification code and therefore takes no action on it other than to return 0.