共用方式為


CMFCBaseTabCtrl::GetTabFromHwnd

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

virtual int GetTabFromHwnd(
   HWND hwnd
) const;

Parameters

  • [in] hwnd
    A handle to a window.

Return Value

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

Requirements

Header: afxbasetabctrl.h

See Also

Reference

CMFCBaseTabCtrl Class

Hierarchy Chart