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. Context help

Context help

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestionlearning
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.
  • T Offline
    T Offline
    Toni78
    wrote on last edited by
    #1

    I know the simple and easy way on how to create a context help file. For each dialog resource I just have to add the ID of the dialog (actually the ID created by makehelp) to the rtf file. The problem is that I have a dialog which I use over and over but its contents are different depending on the menu (or the button) that calls it. Therefore, I have different help topics that need to be associated with the dialog. The problem is that the dialog has only one ID and I don't know how to associate it with different topics. For example I have a button called "Category" and when I click it a dialog pops up with a bunch of data in it. The idea is that if I hit F1, the "Category" help topic will appear on the screen. I have another button called "Items" and when I click it the same dialog that I used for "Category" pops up but this time it contains another set of data. Therefore, F1 should display the "Items" help topic. The problem is that the dialog has a unique ID which I can't pass to the help file because I can associate this ID only with one topic. Any suggestions please? // Afterall I realized that even my comment lines have bugs

    R 1 Reply Last reply
    0
    • T Toni78

      I know the simple and easy way on how to create a context help file. For each dialog resource I just have to add the ID of the dialog (actually the ID created by makehelp) to the rtf file. The problem is that I have a dialog which I use over and over but its contents are different depending on the menu (or the button) that calls it. Therefore, I have different help topics that need to be associated with the dialog. The problem is that the dialog has only one ID and I don't know how to associate it with different topics. For example I have a button called "Category" and when I click it a dialog pops up with a bunch of data in it. The idea is that if I hit F1, the "Category" help topic will appear on the screen. I have another button called "Items" and when I click it the same dialog that I used for "Category" pops up but this time it contains another set of data. Therefore, F1 should display the "Items" help topic. The problem is that the dialog has a unique ID which I can't pass to the help file because I can associate this ID only with one topic. Any suggestions please? // Afterall I realized that even my comment lines have bugs

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      Use CDialog::SetHelpID() to set different help IDs based on the data you are showing. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
      Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

      T 1 Reply Last reply
      0
      • R Ryan Binns

        Use CDialog::SetHelpID() to set different help IDs based on the data you are showing. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
        Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

        T Offline
        T Offline
        Toni78
        wrote on last edited by
        #3

        Interesting! I missed that. Thank you very much, I will try that. // Afterall, I realized that even my comment lines have bugs

        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