Click to See Complete Forum and Search --> : How to show or hide a scrollbar dynamically in CScrollView?


Ralf Mekle
May 7th, 1999, 09:48 PM
Hi,

How can a scrollbar of CScrollView be dynamically hidden or shown as response to some message (e.g.ButtonClick)?

Is that possible even, if the object of CScrollView is part of a splitter Window?

Thanks,

- Ralf

Sergio Acosta
June 1st, 1999, 12:09 AM
I used:

CRect TotalSize = GetClientRect()
SetScaleToFitSize(CSize(TotalSize.right,TotalSize.right))



and it worked.

I donīt know if there is a better method or if it works with splitter windows.

This function only sets the scroll size to the full window automatically. To show the scroll bars again use SetScrollSize(MM_TEXT,myDocSize).