Need help intercepting the buffer
Hi All,
I am modifying an open source text editor for use in our test department. We have script files that are a nightmare to interpret and create. I want to modify a text editor to display and write too a readible format, while maintaining the integrity of the file. (Yes, I know I could do this with Python or something, but this is a good chance for me to learn C.)
When I opened up the hood of the program I expected to find a function that does the "Oh, this is a Carriage Return, we dont want to display a character, so send a new line" which I could tweak. Instead its all done magically with SendMessage(blah, blah, blah).
It looks like the only way to do this is to intercept the buffer before it is sent as an event, and see if the character I am looking for is there, and change the buffer accordingly.
Does that make sense? If so, how do I recognize an "OnKeyPress" event so that I can grab the buffer? and will this constant scanning of the buffer make it so slow its not viable?
Thanks for your thoughts.
-Josh