Click to See Complete Forum and Search --> : How do you remove the ScrollBar in a CFormView


clodagho
January 19th, 2005, 06:16 AM
I have a CListCtrl imbedded in a CFormView.
They both have a scroll bar - I want only the ListCtrl to have one.

Thanks.

Mutilated1
January 19th, 2005, 02:52 PM
The same way you remove the scroll bar from a CScrollView.

n your CFormView derived classes OnInitialUpdate, you first make sure that SetScrollSizes is not being called.

If it is you just replace that with a call to SetScrollToFitSize. That will initially hide the scrollbars.

Then when the Form view is resized, you will need to do the same thing to prevent them from reappearing. Just Find the calls to SetScrollSizes and Replace them with SetScrollToFitSize.

clodagho
January 31st, 2005, 12:56 PM
I don't think SetScrollToFitSize is an MFC function?