CB_SETEDITSEL message
An application sends a CB_SETEDITSEL message to select characters in the edit control of a combo box.
Parameters
-
wParam
-
This parameter is not used.
-
lParam [in]
-
The LOWORD of lParam specifies the starting position. If the LOWORD is -1, the selection, if any, is removed.
The HIWORD of lParam specifies the ending position. If the HIWORD is -1, all text from the starting position to the last character in the edit control is selected.
Return value
If the message succeeds, the return value is TRUE. If the message is sent to a combo box with the CBS_DROPDOWNLIST style, it is CB_ERR.
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|
See also
-
Reference
-
Other Resources