VS 2017 C++ cannot sccroll view
Alert me|Edit|Delete|Change type
Question
You cannot vote on your own post
0
I am having a problem with scrolling my view (single document, only one view). In older versions of mfc I used the following coding to set the scroll:
void CNewAccounting1SView::OnInitialUpdate()
{
CScrollView::OnInitialUpdate();
CSize sizeTotal;
sizeTotal.cx = 4700;
sizeTotal.cy = 1100;
SetScrollSizes(MM_LOENGLISH, sizeTotal);
}
However, SetScrollSizes is not recognized in VS2017.
I have tried using a number of different possibilities, including getscrollinfo and setscrollinfo, getscrollrange and setscrollrange plus a number of other Methods and have also tried changing my view from CView to CScrollView.
I create a report in my view (about 6-8 pages). It prints correctly, but I need to see the entire report.
I would very much appreciate it if you could show me some sample coding that solves my problem.
Charlie S.