resizing frame to fit view?
-
MDI application. How to resize childFrame to fit view, which is determined by grid control. They size of grid control changes. I want ChildFrame change correspondingly. Thank you in advance. :^)
ResizeParentToFit This method allows the size of your view to dictate the size of its frame window. This is recommended only for views in MDI child frame windows. Use ResizeParentToFit in the OnInitialUpdate handler function of your derived view class. ResizeParentToFit assumes that the size of the view window has been set. If the view window size has not been set when ResizeParentToFit is called, you will get an assertion. To ensure that this does not happen, make the following call before calling ResizeParentToFit: GetParentFrame()->RecalcLayout();
Love Forgives--Love Gives--Jesus is Love :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord