How to Add Asterik Symbol( * ) in the Dialog Name !!!!!
-
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 :^)
-
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 :^)
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:
-
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 :^)
phanindra varma wrote:
Is there any another API or simple way to do this
In the sheet, call
GetTabControl()
. Then fill out aTC_ITEM
structure and callGetItem()
. Add the asterisk and callSetItem()
."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