CWnd::RepositionBars

void RepositionBars( UINT nIDFirst, UINT nIDLast, UINT nIDLeftOver, UINT nFlag = CWnd::reposDefault, LPRECT lpRectParam = NULL, LPCRECT lpRectClient = NULL, BOOL bStretch = TRUE );

Parameters

nIDFirst

The ID of the first in a range of control bars to reposition and resize.

nIDLast

The ID of the last in a range of control bars to reposition and resize.

nIDLeftOver

Specifies ID of pane that fills the rest of the client area.

nFlag

Can have one of the following values:

lpRectParam

Points to a RECT structure; the usage of which depends on the value of nFlag.

lpRectClient

Points to a RECT structure containing the available client area. If NULL, the window’s client area will be used.

bStretch

Indicates whether the bar should be stretched to the size of the frame.

Remarks

Called to reposition and resize control bars in the client area of a window. The nIDFirst and nIDLast parameters define a range of control-bar IDs to be repositioned in the client area. The nIDLeftOver parameter specifies the ID of the child window (normally the view) which is repositioned and resized to fill the rest of the client area not filled by control bars.

CWnd OverviewClass MembersHierarchy Chart

See Also   CFrameWnd::RecalcLayout