This is a sample project showing how to move the caret/text insertion point in a Win32 edit control. See the accompanying blog post
Note: most of this is boilerplate code generated by Visual Studio 2010's project template. See line 155 of MoveCaret2.cpp
for the code that manipulates the cursor.
The text box is created on Line 199 of the same file.
The code is in the public domain! The blog post is (C) 2011 David Bernal.