Call this member function to allow the size of your view to dictate the size of its frame window.
void ResizeParentToFit( BOOL bShrinkOnly = TRUE );
Header file: | Afxwin.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CScrollView Overview, CScrollView Member Functions, View Classes, CView::OnInitialUpdate, CScrollView::SetScrollSizes