CPane::StretchPaneDeferWndPos

Stretches the pane vertically or horizontally based on docking style.

virtual int StretchPaneDeferWndPos(
   int nStretchSize,
   HDWP& hdwp
);

Parameters

  • [in] nStretchSize
    The amount, in pixels, to stretch the pane. Use a negative value to shrink the pane.

  • [in] hdwp
    Not used.

Return Value

The actual amount, in pixels, that the pane was stretched.

Remarks

If necessary, this method modifies nStretchSize to ensure that the pane does not exceed size limits. These limits are obtained by calling CPane::GetAvailableStretchSize and CPane::GetAvailableExpandSize.

Requirements

Header: afxpane.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CPane Class