Home > Software engineering >  My class is inherited CScrollView, but the scroll bar can't scroll
My class is inherited CScrollView, but the scroll bar can't scroll

Time:10-25

This is my class like class CMyScrollView: public CScrollView

The scroll bar but not scroll is the reason why

In ontouch function is set up such
CRect rcClient;
GetClientRect (& amp; RcClient);

CSize sizeTotal;
SizeTotal. Cx=(THUMBSIZE + 30) * 32 + 30;
SizeTotal. Cy=(THUMBSIZE + 5) * 4 + 5;
SetScrollSizes (MM_TEXT, sizeTotal, CSize (rcClient Width (), rcClient. Height ()), CSize (THUMBSIZE + 30, THUMBSIZE + 30));


This is wrong and how to thank you master

CodePudding user response:

Where is the warrior
  • Related