Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Always show CExtScrollBar in CExtPPVW Collapse All
Subject Author Date
Chris G. Aug 17, 2009 - 7:42 AM

Hello Prof-UIS,

i created a grid (instance of CExtPPVW<CExtGridWnd>) with a vertical scrollbar by adding a CExtScrollBar member to the grid class and overriding the GetScrollBarCtrl(int nBar) method. Everything works fine so far. If the rows need more space than visible then the scrollbar appears. But now i would like to have the scrollbar always visible, even if there are less rows visible than required. In that case the scrollbar should be disabled. How can this be achieved?

Thanks in advance & regards,


Chris G. Aug 17, 2009 - 5:01 PM

Thank you again for the good support!



Technical Support Aug 17, 2009 - 11:48 AM

First of all, you can use the CExtNSB template class to add themed scroll bars to any CExtScrollWnd-based scrollable control such as CExtGridWnd. You can simply use the CExtPPVW < CExtNSB < CExtGridWnd > > template based type. Please invoke the CExtScrollItemWnd::SiwAutohideScrollBarSet() method to disable scroll bar auto hiding.