Home > Software engineering >  CScrollView always display the scroll bar, when the user data is less than one screen, scroll bars a
CScrollView always display the scroll bar, when the user data is less than one screen, scroll bars a

Time:10-04

Want to always display the scroll bar, when a user data is less than one screen, scroll bars the grey, please expert help, thank you

CodePudding user response:

PCScrollView1 - & gt; The EnableWindow (FALSE);//?

CodePudding user response:

First of all, I want a scroll bar to always show all make uncertain

CodePudding user response:

CScrollView: : SetScrollSizes

CodePudding user response:

Has solved the OnSize invoke the CView: : OnSize (nType, cx, cy); Can set his own ShowScrollBar (SB_BOTH, true);

EnableScrollBar (SB_BOTH ESB_DISABLE_BOTH);
  • Related