Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function retrieves the handle to the first control with the WS_TABSTOP style that precedes or follows the specified control.

Syntax

HWND GetNextDlgTabItem( 
  HWND 
hDlg, 
  HWND 
hCtl, 
  BOOL 
bPrevious
); 

Parameters

hDlg

[in] Handle to the dialog box to be searched.

hCtl

[in] Handle to the control to be used as the starting point for the search. If this parameter is NULL, the function uses the last (or first) control in the dialog box as the starting point for the search.

bPrevious

[in] Boolean that specifies how the function is to search the dialog box. If this parameter is TRUE, the function searches for the previous control in the dialog box. If this parameter is FALSE, the function searches for the next control in the dialog box.

Return Value

The window handle of the previous or next control that has the WS_TABSTOP style set indicates success. NULL indicates failure. To get extended error information, call GetLastError.

Remarks

The GetNextDlgTabItemfunction searches controls in the order (or reverse order) they were created in the dialog box template. The function returns the first control it locates that is visible, not disabled, and has the WS_TABSTOP style. If no such control exists, the function returns hCtl.

Requirements

Header winuser.h
Library Dlgmgr.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also