Home > Software engineering >  MFC in vs2010 problem of the vertical scroll bar.
MFC in vs2010 problem of the vertical scroll bar.

Time:05-09

I will interface properties Vertical Scrollbar to True, my idea is that the data is not a screen does not display the scroll bar, and then after how many enough data show a scroll bar, is how to use the code to control the display of the scroll bar, the idea is to scroll bar at the top of the other is zero, says the number of data at the bottom of the num, but num is variable, such as the beginning of my num=0, I want to achieve the slider fill the whole slide, then with the increase of the data block is more and more small,
Such as fill chute, the next thing I'd like to implement the slider can be part of this space below? Figure the following
SCROLLINFO SCROLLINFO;
Scrollinfo. NPage=10;//whether the 10 here said the width of the scroll bar is
Scrollinfo. NMax=10;
GetScrollInfo (SB_VERT, & amp; Scrollinfo SIF_ALL);

  • Related