Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 » child of CExtControlBar missing scrollbars Collapse All
Subject Author Date
Cory Albrecht May 20, 2003 - 2:29 PM

Hello,

I actually noticed this a while ago, but haven’t had the time to look into it.

I have used a CExtControlBar object to be the parent of a window derived from CTreeCtrl, instead of my old method of hooking the OnSize and OnPaint methods to split the child are of a CMainFrame window between the tree control and an mdiclient window.

The problem is, when with the tree contral as a child of the CExtControlBar the scroll bars for the tree never appear when there are too many nodes to display (vertical scroll bar) or when the name of a node is too long for the tree control’s width (horizontal scrollbar).

I tried explicitly setting WS_HSCROLL and WS_VSCROLL when calling Create(), and I tried calling ShowScrollBar() in several places but the scrollbars never, ever appear.

Why is this?

Sergiy Lavrynenko May 21, 2003 - 9:35 AM

Hi,

Please verify your tree-control class is not based on CExtWRB template type. This template uses non-client area to draw dark thin rectangle (like VS.NET does). But scrollbars in the tree controls are part of non-client area. So CExtWRB simply kills them :-) CExtWRB is good for using with CDialog-like windows inside resizable bar.

If my guess is incorrect you may send me a letter to l_sergiy@fossware.com with your project and I will help you.

Regards, Sergiy.