Q: CTreeCtrl: How to over-ride default selection of item
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello Folks, Am new to MFC, actually am trying to use PageUp/PageDown keys to switch top/Bottom of the tree, but the problem is when trying am to click keys by default it selects an item & switches over from top-to-bottom/bottom-to-top. And I've also tried the solution
TreeItem = GetSelectedItem();
if (TreeItem)
{
SetItemState(TreeItem, 0, TVIS_SELECTED);
}but it works when any one of the keys for the second time. so i request for a solution where i can directly switch over from top/button without any item being selected/focused Thank You,