Developer

API Reference

IWidget_GetFocusIndex()

Brew Release
Brew MP 1.0.2
See Also
IWidget_SetFocusIndex Date and Time Widget Classes AEECLSID_ListWidget
Description

Retrieves the index of the currently focused object in a widget. What that object is varies depending on the widget receiving this property. For example: in a list widget, it is the currently focused item in the list and for a Date/Time widget it is the time field that is currently selected by the user.
Parameters
  • pif
    []:
    [in] Pointer to the IWidget interface object.
  • pnIndex
    []:
    [out] On successful termination, stores the currently focused item in the widget.
Interface
Prototype
int IWidget_GetFocusIndex(IWidget *pif, int *pnIndex)
Return
   AEE_SUCCESS - Successfully retrieved the index of the focused object
   AEE_EFAILED - Failed to retrieve the index of the focused object
Side Effect

On successful completion *pnIndex stores the index of the focused item.
Comment

None
  • Follow