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. To Remove node using delete key

To Remove node using delete key

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structureshelptutorial
3 Posts 2 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.
  • B Offline
    B Offline
    Binayak
    wrote on last edited by
    #1

    Hi, When I press delete key, I want to delete the selected node from the tree control in the sdi application. Do I need to use keyboard accelarator? How do I do it? any example? Also, I want to popup a dialog which says Do you want to delete the selected node with yes and no option. Is there any custom way to achieve this? Please Help! Thanks in advance

    M 1 Reply Last reply
    0
    • B Binayak

      Hi, When I press delete key, I want to delete the selected node from the tree control in the sdi application. Do I need to use keyboard accelarator? How do I do it? any example? Also, I want to popup a dialog which says Do you want to delete the selected node with yes and no option. Is there any custom way to achieve this? Please Help! Thanks in advance

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Handle the TVN_KEYDOWN notification and look for a keycode of VK_DELETE. For the yes/no prompt, use MessageBox() --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

      B 1 Reply Last reply
      0
      • M Michael Dunn

        Handle the TVN_KEYDOWN notification and look for a keycode of VK_DELETE. For the yes/no prompt, use MessageBox() --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber CP SearchBar v2.0.2 released

        B Offline
        B Offline
        Binayak
        wrote on last edited by
        #3

        Hi Thanks for your reply. Can you explain a little more detail please. 1. Where do I handle The TVN_KEYDOWN notification. I have a formview and added the tree controls in that view. 2. MessageBox has following syntax from msdn, where is the option to add yes and no button? MessageBox( LPCTSTR lpszText, LPCTSTR lpszCaption = NULL, UINT nType = MB_OK ); please help

        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