VS 2017 C++ cannot sccroll view

Charles Sterbakov 21 Reputation points
2020-09-08T15:03:08.727+00:00

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.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,628 questions
{count} votes