Click to See Complete Forum and Search --> : How do you resize a frame?


Malamber
May 4th, 1999, 07:19 PM
Hello,
I am working on an SDI app that uses FormView as the base for the view. I have an object set as a frame, IDC_PLACEHOLDER. What I want to do is resize the placeholder at run-time to fit the entire formview client area. Then I'm placing PropertyPages within the placeholder. Anyone got an idea on how to resize the placeholder to fit the formview??

Howard Birkett
May 4th, 1999, 07:34 PM
MoveWindow() - or am I misreading what you want?

Howard

Malamber
May 4th, 1999, 07:38 PM
I don't think thatwill work. Or maybe I'm just not that familiar with move window. I want to be able to expand the placeholder based on screen resolution. If the client area is bigger, then the placeholder changes to fit the client area

Howard Birkett
May 5th, 1999, 08:34 AM
MoveWindow() will resize a window according to the sizes you give it - you can find out the size of the client rect with GetClientRect() = hope this helps

Howard.

May 7th, 1999, 01:40 PM
Does anybody know whether there is a function to determine the free client area NOT COVERED BY DOCKED TOOLBARS ?
So this could be used in a MDI application for a frame window to fit exactly in the free client area, via MoveWindow().

(I suppose this must be done the "hard way" determining which toolbars are active, to look whether they are floating or not, to check
whether they are horicontally or vertically docked und eventually get their sizes and subtract them from that one of the client rect)

Thanks for hints in advance, Gus