This message is sent by an application to select characters in the edit control of a combo box.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 1.0 and later |
Syntax
CB_SETEDITSEL wParam = 0; lParam = MAKELPARAM(ichStart, ichEnd);
Parameters
ichStart
Value of the low-order word of lParam. Specifies the starting position. If this parameter is set to –1, the selection, if any, is removed.
ichEnd
Value of the high-order word of lParam. Specifies the ending position. If this parameter is set to –1, all text from the starting position to the last character in the edit control is selected.
Return Values
TRUE indicates success. CB_ERR indicates that the message is sent to a combo box with the CBS_DROPDOWNLIST style.
Remarks
The positions are zero-based. The first character of the edit control is in the zero position. The first character after the last selected character is in the ending position. For example, to select the first four characters of the edit control, use a starting position of 0 and an ending position of 4.
See Also