How do you resize a frame?
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??
Re: How do you resize a frame?
MoveWindow() - or am I misreading what you want?
Howard
Re: How do you resize a frame?
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
Re: How do you resize a frame?
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.
Re: How do you resize a frame?
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