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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Add handlers to menu items added at run time

Add handlers to menu items added at run time

Scheduled Pinned Locked Moved C / C++ / MFC
databasetutorialquestion
2 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.
  • A Offline
    A Offline
    Aditya Rao
    wrote on last edited by
    #1

    hi, i had asked a similar query some days back. i wanted to add some text to the menu at runtime when the user clicks a button(similar to Add to Favourites). the solution posted helped to add the string to the menu at run time. but now i want to write a handler for the items added to the menu list; as there can be many strings in the menu we cannot write handlers for all those items. can anyone tell me how to write a single handler for the strings added in the Favourites menu.( i.e. the user would be adding a names of sites or rather strings to the menu and when he clicks one of those added in the menu i should be able to process the string, such as what is the text selected/string name). thanks aditya

    J 1 Reply Last reply
    0
    • A Aditya Rao

      hi, i had asked a similar query some days back. i wanted to add some text to the menu at runtime when the user clicks a button(similar to Add to Favourites). the solution posted helped to add the string to the menu at run time. but now i want to write a handler for the items added to the menu list; as there can be many strings in the menu we cannot write handlers for all those items. can anyone tell me how to write a single handler for the strings added in the Favourites menu.( i.e. the user would be adding a names of sites or rather strings to the menu and when he clicks one of those added in the menu i should be able to process the string, such as what is the text selected/string name). thanks aditya

      J Offline
      J Offline
      Jose Lamas Rios
      wrote on last edited by
      #2

      Please clarify. Are you asking how to make the function be the handler for all the menu items, or how to write the body of the function? -- jlr http://jlamas.blogspot.com/[^]

      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