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,