Was wondering if anyone could enlighten me on how to refresh an open file inside a gui editor.
I have a fairly simple program coded that uses WNDCLASSEX to setup the MDIChildWindow. (This is a text editing program that has the ability to open multiple childs.)
What I want is a way to, SIMPLY, refresh any open text files if the original file has been changed via another user/program/etc.
It is not neccessary that the code use API to check to see if the file has been modified. Meaning, I would be happy with some sort of timer control that every x interval reloaded the file. (of course in the same Child Window, e.g. I would not want it to open a new window for the update file.)
In summation, I guess what I am inquiring on is something that works like a log file viewer(real time) or if anyone has used notepad++, notepad++ has a feature that if the file has changed it prompts you with "File has changed would you like to view new changes." Of course, the prompt is not needed.
I can post my code if requested, but will refrain for now in order to not pyramid the thread.