Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Q: CTreeCtrl: How to over-ride default selection of item

Q: CTreeCtrl: How to over-ride default selection of item

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structureshelptutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ShivaPrasadGadapa
    wrote on last edited by
    #1

    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,

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups