Learn how to move a caret inside a text box using the Win32 API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MoveCaret2
MoveCaret2.sln
README.markdown

README.markdown

MoveCaret

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.

License

The code is in the public domain! The blog post is (C) 2011 David Bernal.