Hi, Iím creating a windows notepad clone using C++, no MFC. Basically the application is just a window with a rich edit control. If the user wants to create a new document or exit the application I want to carry out a check to see if any changes have been made since the last save and alert the user. A global Variable (bool saved) will be set to true after a save was complete but I am having trouble finding a way to detect when a change has been made so I can set saved to false.
I expect that there will be a message sent to the parent window if a change has been made but I have had no luck finding what it might be. If anybody could enlighten me of how this is carried out that would be great.