In MFC, a CListBox has a ‘disable no scroll’ property. When you set it to true, the vertical scrollbar is always there, no matter how many items you have. How can I do the same thing with CListCtrl?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The standard control does not seem to support your desired behavior.
You could either create enough entries to make the scroll bar visible or you could create your own control implementing it the way you like. Inbetween would be the ownerdrawn style, but that does not apply to the scroll bar.
BTW: what would be a reason to have the scrollbar visible all the time in a list control anyways?