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. How can we Change the Caption of a specific ID in String Table.(Urgent pls)

How can we Change the Caption of a specific ID in String Table.(Urgent pls)

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
5 Posts 3 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.
  • R Offline
    R Offline
    RockyJames
    wrote on last edited by
    #1

    Hi, How can we Change the Caption of a specific ID in String Table,at run time.Say for example when i check the menu item "File->New".The tooltip text of "print" icon should be changed to "Open a new file", In the toobar. -- modified at 2:29 Friday 16th December, 2005

    G 1 Reply Last reply
    0
    • R RockyJames

      Hi, How can we Change the Caption of a specific ID in String Table,at run time.Say for example when i check the menu item "File->New".The tooltip text of "print" icon should be changed to "Open a new file", In the toobar. -- modified at 2:29 Friday 16th December, 2005

      G Offline
      G Offline
      grigsoft
      wrote on last edited by
      #2

      I think you should be able to modify resources at runtime, however easier would be overwriting CMainFrame::GetMessageString, which is called for tooltip\status text. Igor Green http://www.grigsoft.com/ - files and folders comparison tools

      R 1 Reply Last reply
      0
      • G grigsoft

        I think you should be able to modify resources at runtime, however easier would be overwriting CMainFrame::GetMessageString, which is called for tooltip\status text. Igor Green http://www.grigsoft.com/ - files and folders comparison tools

        R Offline
        R Offline
        RockyJames
        wrote on last edited by
        #3

        Using GetMessageString , we can retrive the text,Is there any function to set a new String.

        G T 2 Replies Last reply
        0
        • R RockyJames

          Using GetMessageString , we can retrive the text,Is there any function to set a new String.

          G Offline
          G Offline
          grigsoft
          wrote on last edited by
          #4

          I don't know how to change string table. My idea was instead of doing this, you can override GetMessageString and return another string ID2 when asked for string ID1 Hope this helps, Igor Green http://www.grigsoft.com/ - files and folders comparison tools

          1 Reply Last reply
          0
          • R RockyJames

            Using GetMessageString , we can retrive the text,Is there any function to set a new String.

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            RockyJames wrote:

            Is there any function to set a new String.

            UpdateResource Function

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            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