Is it possible to get and set the text cursor (I-beam) position in CEdit control?
Here is my problem: I want to edit the text the user types while he is typing it, and for this I work with the appropriate message and, if an incorrect text has been typed, alter the string the control displays. However, every time I use SetWindowText to alter the string, the text cursor hops to the beginning of the line. Since I make this checking every time the text of the control changes, there is no need for it to move the cursor - the new character either will or will not be displayed.
Is there a solution or a workaround for my problem?