Original Post
Ok, so I've written some code for keyboard input and I've got it broken down into three basic parts: The directinput code for in-game stuff, using the WM_KEYDOWN/WM_KEYUP message for menus and WM_CHAR/WM_KEYDOWN for text input. The first two parts work fine, however I'm running into some issues with the text input. By using the WM_CHAR message I have IME input working, basic text input works just fine, but I noticed that it doesn't handle a cursor in the input, so I set about to recreate the basics of text input that present day users are used to; home/end keys, shift to select blocks of text, etc. After all of that was ironed out I'm left with one last hurdle: the control + left/right key function. I can't think of a way to reproduce this without using a regular expression and I really don't want to have to add all of that code for one single function, so I thought I'd present the question here. Is there a way to make windows handle the cursor and all of that for me without using a windows control (so that I can put my own graphics around it), or is there an easier way to add the control functionality without using a regular expression?