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 |
|
tera tera
|
Sep 11, 2009 - 4:08 AM
|
Hello. It is a selection of Tree.
When a focus moves to other UI, a selection disappears.
I want to always display selections. 
|
|
Technical Support
|
Sep 14, 2009 - 6:26 AM
|
Please take a look at the source code of the CPageTreeCtrl::OnBnClickedCheckShowSelAlways() handler method in the ProfUIS_Controls sample application. It’s invoked when the Show selection always check box is checked/un-checked on the Tree View dialog page. You can see how the CExtTreeCtrl control on this dialog page displays the selection permanently when the Show selection always check box is checked. Is that is what you need? But, of course, the selection look is different when the tree control is focused and when it’s not focused. You can override the CExtTreeCtrl::OnQueryWindowFocusedState() virtual method and simply return true flag from it. As result, your tree control will think that it’s always a focused window.
|
|
Technical Support
|
Sep 11, 2009 - 7:20 AM
|
We guess here is what you need: CExtTreeCtrl & wndTree = . . .
wndTree.ShowSelectionAlwaysSet();
|
|
tera tera
|
Sep 13, 2009 - 6:44 PM
|
The command does not work.
When the focus of other spirit screens moves, the selection of the tree disappears. 
ProfLib uses 2009-08-19.
|
|