Thanks for the response. I don't think this can work. CWinFormsView is
not a child of CFormView. It is a child of CView. There is no
SetScrollSizes function. Is there an equivelant that I am overlooking?
I am assuming that you are catching the WM_SIZE message in your view to
resize your control.
In addition to resizing your control you have to call
CFormView::SetScrollSizes(...)
void CFormViewTestView::OnSize(UINT nType, int cx, int cy)
{
SetScrollSizes(MM_TEXT,CSize(cx,cy));
//also resize the control here
CFormView::OnSize(nType, cx, cy);
}
AliR.
<MLM450@hotmail.com> wrote in message
news:1147447855.899563.153450@i40g2000cwc.googlegroups.com...
I am using CWinFormsView to host my C# control. When I resize the view
window to a larger size the control seems to grow with it just fine.
But when I shrink the size of the view, I get scroll bars. I don't