Please find the following member of the CDlgDemoTreeCtrl
class in your project:
CExtWRB<CExtWFF< CTreeCtrl > > m_treeCtrl;
and replace it with
CExtWFF < CTreeCtrl > m_treeCtrl;
You will also need to replace
CExtWRB<CExtWFF< CTreeCtrl > >& m_wndTree = m_treeCtrl;
code with the
CTreeCtrl & m_wndTree = m_treeCtrl;
code in the
CDlgDemoTreeCtrl::OnInitDialog()
method. The scroll bars will appear in the tree control after these modifications.
Please do not use the
CExtWRB
template class with the controls which have scroll bars. The
CExtWRB
template class re-computes and re-paints window non-client area making it looking like a thin 1 pixel border. But scroll bars of the tree control are not scroll bar windows. Thay are rather parts of the window non-client area and they are not based on
HWND
handles. So, the
CExtWRB
template class simply kills scroll bars.
The
CExtWRB
template class is designed for non-scrollable windows like
CExtResizableDialog
. When using
CExtWRB
with windows inside resizable control bars, the thin border looks like it is around many windows inside dockable panes in Visual Studio .NET and Visual Studio 2005. But the tree control already has a nice thin border.