|
|
|
|
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.
Subject |
Author |
Date |
|
James Dickson
|
Nov 5, 2002 - 1:35 AM
|
Hi,
I was looking at this sample and I noticed that no scroll bars appeared for the TreeView when all root level items were expanded even though in the code they are defined at .Create:
if( !m_wndDockedCtrlTree.Create( WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_HSCROLL |TVS_HASBUTTONS|TVS_HASLINES|TVS_LINESATROOT |TVS_INFOTIP|TVS_DISABLEDRAGDROP |TVS_SINGLEEXPAND|TVS_SHOWSELALWAYS , CRect(0,0,0,0), &m_wndResizableBarTree, m_wndResizableBarTree.GetDlgCtrlID() ) )
Any ideas?
Regards,
Jamie.
|
|
go_micha
|
Nov 25, 2002 - 4:17 AM
|
I use very simple way to enabling flat scrollbars in any control located inside of extControlBar:
1. Download the CoolScrollLibrary from www.catch22.uk.net (thanks for J.Brown james@catch22.uk.net)
2. Compile it and insert into your project 3. In .h file instead of CExtWRB<CExtWFF<CMtDeviceTreeCtrl>> m_wndDockedCtrlTree; use CTreeCtrl m_wndDockedCtrlTree;
4. in .cpp if( !m_wndDockedCtrlTree.Create(...)) { ... } InitializeCoolSB(hwndCtrl); CoolSB_SetStyle(hwndCtrl, SB_BOTH, CSBS_HOTTRACKED); ... ... 5. In app.cpp file: BOOL CYourApp::OnInitInstance() { ... CoolSB_InitializeApp(); CMainFrame* pFrame = new CMainFrame; .... }
int CYourApp::ExitInstance () { CoolSB_UninitializeApp(); return CWinApp::ExitInstance (); }
Thas all!
|
|
genka
|
Nov 6, 2002 - 6:12 AM
|
Hi James,
you can change it in MainFrm.h: //CExtWRB<CExtWFF<CTreeCtrl>> m_wndDockedCtrlTree; CTreeCtrl m_wndDockedCtrlTree;
And it is worked ,-)
wbw, genka
|
|