PyCScrollView.ResizeParentToFit

tuple = ResizeParentToFit(bShrinkOnly)

Lets the size of a view dictate the size of its frame window.

Parameters

bShrinkOnly=1 : int

The kind of resizing to perform. The default value, TRUE, shrinks the frame window if appropriate.

Comments

This is recommended only for views in MDI child frame windows.
Use ResizeParentToFit in the OnInitialUpdate handler function of your View class.
You must ensure the parent's PyCFrameWnd::RecalcLayout is called before using this method.