GetNextDlgTabItem

  HWND GetNextDlgTabItem(hwndDlg, hCtl, bPrevious)    
  HWND hwndDlg; /* handle of dialog box */
  HWND hCtl; /* handle of known control */
  BOOL bPrevious; /* direction flag */

This function obtains the handle of the first control that has the WS_TABSTOP style that precedes (or follows) the control identified by the hCtl parameter.

Parameters

hwndDlg

Identifies the dialog box being searched.

hCtl

Identifies the control to be used as a starting point for the search.

bPrevious

Specifies how the function is to search the dialog box. If the bPrevious parameter is nonzero, the function searches for the previous control in the dialog box. If bPrevious is zero, the function searches for the next control in the dialog box. Identifies the control to be used as a starting point for the search.

Return Value

The return value identifies the previous (or next) control that has the WS_TABSTOP style set.

See Also

GetNextDlgGroupItem