CurFocus Property
Windows - Visual C++
Dispatch ID = 0x1
Description
The CurFocus property returns or
sets the item with the focus.
Syntax
long value = GetCurFocus();
void SetCurFocus(long value);
Value
A long integer value containing the
row number of the item with the focus. Value is one-based
Remarks
The
CurFocus property is only relevant when the MultipleSelection
Feed property is set to FALSE (its default setting). CurFocus is only
valid with single-selection list boxes, it is not valid in a multiple
selection list box.
CurFocus returns -1 if there is no item with the focus. If the CurFocus property is set to an invalid value, such as a negative number or a number greater than the number of items in the list, then it has no effect. If the CurFocus property is set to -1, then no item will have the focus.
Back to: Feed Properties Quote Properties