Win32 text box properties quesiton.

I'm messing with <Windows.h> and trying to create a notepad clone as a starting project. Figured it would be easy enough for beginners, and learn some of how the win32 api works.

I've got the text area set up with a large sized text box. I'm trying to get it to word wrap at the end of the current line (once it reaches the width of the text box), but cannot figure it out. Provided is the code used for my current text box. If more code is required let me know and I'll post it.

Thanks!

1
2
3
4
mainText = CreateWindow(TEXT("EDIT"), TEXT("Begin typing..."),
WS_VISIBLE | WS_CHILD | WS_BORDER | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE | ES_WANTRETURN,
10, 10, 1400, 600,
Window, (HMENU) mainText, NULL, NULL);
I've done some looking around for a flag that may do wrapping but no luck so far. Anyone else?
Topic archived. No new replies allowed.