This documentation is archived and is not being maintained.

CMFCBaseTabCtrl::GetTabFromHwnd

Retrieves the index of the tab that contains the specified HWND object.

virtual int GetTabFromHwnd(
   HWND hwnd
) const;

[in] hwnd

A handle to a window.

The zero-based index of the tab if successful; -1 if no tab contains hwnd.

Header: afxbasetabctrl.h

Show: