WndListItem (index)

This function returns the window handle at the given index. The size of the window list is returned by WndListCount. Index values start at zero, and continue up to one less than the value returned by WndList­Count.

This example enumerates all the open window handles:

cwnd = WndListCount()

iwnd = 0

while (iwnd < cwnd)


   hwnd = WndListItem(iwnd)

   // … do something with window hwnd

   iwnd = iwnd + 1