SetEditSel(start, end)

Sets the selection in the edit control portion of a combo box.


start : int

Specifies the starting position. If the starting position is set to -1, then any existing selection is removed.

end : int

Specifies the ending position. If the ending position is set to -1, then all text from the starting position to the last character in the edit control is selected.

MFC References


Return Value

The return value is always None - an exception is raised if the combo is a dropdown style, or does not have an edit control.