Help Center
Help Center›AfxNova

CCombo.SetCurSelmethod

Selects a string in the list of a combo box. If necessary, the list scrolls the string into view. The text in the edit control of the combo box changes to reflect the new selection, and any previous selection in the list is removed.

WindowsmethodCCombo.incundocumented
Not documented upstream. This symbol was found in the AfxNova source but appears in no documentation topic. The signature below is read directly from the code; any description comes from the source comments.

Syntax

PRIVATE FUNCTION CCombo.SetCurSel (BYVAL hCombo AS HWND, BYVAL index AS LONG) AS LONG

Description

Selects a string in the list of a combo box. If necessary, the list scrolls the string into view. The text in the edit control of the combo box changes to reflect the new selection, and any previous selection in the list is removed.

Reference

  • Include file CCombo.inc
  • Defined in AfxNova/CCombo.inc:471