CN PICKUP
Appearance
This message is sent by the container control to its owner when a pickup and drop operation is initiated over a container.
Syntax
param1 USHORT id; /* Container control ID. */ USHORT CN_PICKUP; /* Notification code. */ param2 PCNRDRAGINIT pCnrDragInit; /* Pointer to the CNRDRAGINIT structure containing direct-manipulation information initiated in a container. */ returns ULONG ulReserved; /* Reserved value, must be 0. */
Parameters
- id (USHORT) - Input
- Container control ID.
- CN_PICKUP (USHORT) - Input
- Notification code.
- pCnrDragInit (PCNRDRAGINIT) - Input
- Pointer to the CNRDRAGINIT structure containing direct-manipulation information initiated in a container.
- The CNRDRAGINIT structure is the same as the one used for standard drag notifications.
Returns
- ulReserved (ULONG) - returns
- Reserved value, must be 0.
Remarks
This notification code is sent to the owner of the container when a lazy drag operation is commenced over a container. (The container control receives a WM_PICKUP message.)
The CN_PICKUP message handler determines if the mouse is over an object or in white space of the client window.
If a pickup object is not selected, only that pickup object is added to the lazy drag set. If the pickup object is selected, all selected items in the container are added to the lazy drag set. The shell sets the CRA_PICKED attributes for all objects that are picked.
Default Processing
The default message procedure sets ulReserved to 0.