Share via


CTabbedPane::GetTabArea

Returns the size and position of the tab area in the tabbed window.

virtual void GetTabArea(
    CRect& rectTabAreaTop,
    CRect& rectTabAreaBottom 
) const;

Parameters

  • [out] rectTabAreaTop
    Contains the size and position, in screen coordinates, of the top tab area.

  • [out] rectTabAreaBottom
    Contains the size and position, in screen coordinates, of the bottom tab area.

Remarks

The framework calls this method to determine how to dock a pane that a user is dragging. When the user drags a pane over the tab area of the target pane, the framework tries to add it as a new tab of the target pane. Otherwise, it tries to dock the pane to the side of the target pane, which involves creating a new pane container with a pane divider that separates the two panes.

Override this method in a CTabbedPane-derived class to change this behavior.

Requirements

Header: afxTabbedPane.h

See Also

Reference

CTabbedPane Class

Hierarchy Chart