Share via


CBasePane::GetParentTabWnd

Returns a pointer to the parent window that is inside a tab.

CMFCBaseTabCtrl* GetParentTabWnd(
   HWND& hWndTab
) const;

Parameters

  • [out] hWndTab
    If the return value is not NULL, this parameter contains the handle to the parent tabbed window.

Return Value

A valid pointer to the parent tabbed window or NULL.

Remarks

Use this function to retrieve a pointer to the parent tabbed window. Sometimes it is not enough to call GetParent, because a pane may be inside a docking wrapper (CDockablePaneAdapter Class) or inside a pane adapter (CDockablePaneAdapter Class). By using GetParentTabWnd you will be able to retrieve a valid pointer in those cases (assuming that the parent is a tabbed window).

Requirements

Header: afxbasepane.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CBasePane Class