CM OPENEDIT
Appearance
This message opens the window that contains the multiple-line entry (MLE) field used to edit container text directly.
Syntax
param1 PCNREDITDATA pCnrEditData; /* Pointer to the CNREDITDATA structure. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- pCnrEditData (PCNREDITDATA) - Input
- Pointer to the CNREDITDATA structure.
- ulReserved (ULONG) - Input
- Reserved value, should be 0.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE: Direct editing of container text was successfully started.
- FALSE: Direct editing of container text was not successfully started. The WinGetLastError function may return the following error:
- PMERR_INVALID_PARAMETERS.
Remarks
The application sends this message to the container control to start the direct editing of container text. The application can assign this message to a key or key combination, a menu choice, or both so that the user can start editing container text directly from the keyboard.
When the container control receives this message, it sends the CN_BEGINEDIT notification code to the application.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it other than to return FALSE.