I am creating a C program that makes a MDI Editor using RichEdit.
Actually the program runs and offer many options.
I would like to improve it adding :

-Syntax coloring
-Compile/Build options

For the instant I am working on the indentation. My idea is to catch (MSGFILTER) the return key and to add the a number of leadind spaces or tabs that the previous line had. The problem is how to create a new line when the return key is pressed?

The program runs under Windows

Could you help me?


Archive compressed using 7zip.