I've been goofing around making (or trying to make) a simple Windows edit program like Notepad in C language. This endeavor is purely for fun which for the most part it has been. Well, my latest obsticle is creating a margin in the edit control window. Currently, the cursor is jambed all the way against the left hand border and up against the title bar area of the parent window. I'd like to create that small buffer look you see on programs such as Wordpad where the cursor starts a little down from the title bar and a bit away from the left hand border. I've messed around with things like EM_GETRECT, EM_SETRECT, and MoveWindow but each scenerio has left problems. With the EM_GETRECT, EM_SETRECT the new postions (values for left and top rect) disappear everytime the edit window gets repainted, resized, or if word wrap is envoked. When I alter the left and top rect values in the MoveWindow function under WM_SIZE it messes up the verticle and horizonal scroll bar locations.
I must add that I really don't know much about programming in C-language or any language for that matter. In addition, I'm using ancient programs like: MSC7 (MSVC1.0 ?), MSVC32S, on an old Windows 98 loaded computer for this project.