CFormView dynamic resize
Posted on 1998-05-10
I have a CFormView containing a control that is supposed to occupy the
entire view, but whose size (or at least the visually relevant part of
it is not known at design time. I don't like seeing the underlying
dialog box sticking off the edges; worse, the view is one pane of a
splitter window and the dialog makes the scroll bars appear when they
What I would like is a way to resize the underlying dialog at
the time of the call to OnInitialUpdate() so that the dialog
is the same size as the control. Actually I may need to resize
the control at the same time so it's the same size as the part
that I want to see.
BTW I already tried using SetWindowRgn(). I don't understand
the behavior I see, but it isn't what I want.