Thomas Blenkers wrote:
In my real application I'm doing some autocompletion so I want a first part of the edit text not selected while my recenty added text is selected.
So no problem. You first do whatever replacement or other stuff that you wish to do. Then do GetWindowText and SetWindowText. I know that's not a natural solution. But here are some other functions that I would like to bring to your notice... SetCaretPos --> CWnd PosFromChar --> CEdit I tried these two but the caret didn't move. But you can try. Maybe you can make it work. :)
Nibu thomas Software Developer Programming Tips[^]
Joaquín, thank you, that was the right trick. Once the property page has been created (OnInitDialog is done) you cannot RemovePage it and reuse the same object instance. Thomas