void CDIPView::OnInitialUpdate()
{
CScrollView::OnInitialUpdate();
SetScrollSizes( MM_TEXT, CSize(10000,10000) );
//ResizeParentToFit( );// ResizeParentToFit( );
// Default bShrinkOnly argument
// TODO: Add your specialized code here and/or call the base class
// CSize sizeTotal;
// TODO: calculate the total size of this view
// sizeTotal.cx = sizeTotal.cy = 100;
// SetScrollSizes(MM_TEXT, sizeTotal);
}
void CDIPView::OnUpdate(CScrollView* pSender, LPARAM lHint, CObject* pHint)
{ // TODO: Add your specialized code here and/or call the base class
SetScrollSizes( MM_LOENGLISH, CSize(5000, 5000) );
ResizeParentToFit( ); // Default bShrinkOnly argument
}
{
CScrollView::OnInitialUpdate();
SetScrollSizes( MM_TEXT, CSize(10000,10000) );
//ResizeParentToFit( );// ResizeParentToFit( );
// Default bShrinkOnly argument
// TODO: Add your specialized code here and/or call the base class
// CSize sizeTotal;
// TODO: calculate the total size of this view
// sizeTotal.cx = sizeTotal.cy = 100;
// SetScrollSizes(MM_TEXT, sizeTotal);
}
void CDIPView::OnUpdate(CScrollView* pSender, LPARAM lHint, CObject* pHint)
{ // TODO: Add your specialized code here and/or call the base class
SetScrollSizes( MM_LOENGLISH, CSize(5000, 5000) );
ResizeParentToFit( ); // Default bShrinkOnly argument
}
进行坐标的调整