CN BEGINEDIT
The container control sends the WM_CONTROL (in Container Controls) message with the CN_BEGINEDIT notification code to its owner whenever container text is about to be edited.
Syntax
param1 USHORT id /* Container control ID. */ USHORT CN_BEGINEDIT /* Notification code. */ param2 PCNREDITDATA pCnrEditData /* Pointer to the CNREDITDATA structure. */
Parameters
- id (USHORT)
- Container control ID.
- CN_BEGINEDIT (USHORT)
- Notification code.
- pCnrEditData (PCNREDITDATA)
- Pointer to the CNREDITDATA structure.
Returns
- ulReserved (ULONG)
- Reserved value, should be 0.
Remarks
The CN_BEGINEDIT notification code is sent when direct editing of container text begins.
Warning: Once your application receives the CN_BEGINEDIT notification code, it must not send any messages to the container until it receives the CN_ENDEDIT notification code, which indicates that direct editing of container text has ended. If any messages are sent to the container before your application receives the CN_ENDEDIT notification code, the results of direct editing are unpredictable.
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.