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 to Add Asterik Symbol( * ) in the Dialog Name !!!!!

How to Add Asterik Symbol( * ) in the Dialog Name !!!!!

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelptutorialquestion
3 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.
  • P Offline
    P Offline
    phanindra varma
    wrote on last edited by
    #1

    Hi..... I have One Dialog with Five tabs. Each Tab having so many controls like Edit boxes,buttons and all. My problem is When u enter some Data in any control of that particular tab,the ASTERIK should be added to the Tab Name.(Same as when we write aome Data in wordpad the asterik will add to the Document Name). So, How can i Do that... My IDEA is ::: OnKillfocus() and "change" event of every Control we maintain one varible.but there are so many Controls..!!!!! Is there any another API or simple way to do this :^)

    M D 2 Replies Last reply
    0
    • P phanindra varma

      Hi..... I have One Dialog with Five tabs. Each Tab having so many controls like Edit boxes,buttons and all. My problem is When u enter some Data in any control of that particular tab,the ASTERIK should be added to the Tab Name.(Same as when we write aome Data in wordpad the asterik will add to the Document Name). So, How can i Do that... My IDEA is ::: OnKillfocus() and "change" event of every Control we maintain one varible.but there are so many Controls..!!!!! Is there any another API or simple way to do this :^)

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      The controls send notifications to the parent whenever changes are made. These notifications are typically sent via WM_COMMAND or WM_NOTIFY messages. Assuming MFC here (you could do similar using straight Win32): You could override OnCommand() and OnNotify() in the parent dialog and in your overrides, look for the change notifications, and if one is received, take the appropriate action. Make sure you call the base class method so proper MFC command/notification processing gets done. For a list of the possible notifications and how they are sent, see the Windows Controls[^] documentation for the types of controls you use. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      1 Reply Last reply
      0
      • P phanindra varma

        Hi..... I have One Dialog with Five tabs. Each Tab having so many controls like Edit boxes,buttons and all. My problem is When u enter some Data in any control of that particular tab,the ASTERIK should be added to the Tab Name.(Same as when we write aome Data in wordpad the asterik will add to the Document Name). So, How can i Do that... My IDEA is ::: OnKillfocus() and "change" event of every Control we maintain one varible.but there are so many Controls..!!!!! Is there any another API or simple way to do this :^)

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        phanindra varma wrote:

        Is there any another API or simple way to do this

        In the sheet, call GetTabControl(). Then fill out a TC_ITEM structure and call GetItem(). Add the asterisk and call SetItem().

        "Love people and use things, not love things and use people." - Unknown

        "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

        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