Does anyone have any sample code on using EM_POSFROMCHAR and EM_CHARFROMPAS messages in a TextBox (not a RichTextBox). I've been trying all day and getting nowhere fast.
thanks for the reply. I was just about to reply to this post to say that I found the problem. Your reply talked about EM_CHARFROMPOS, but the problem was actually with EM_POSFROMCHAR. All the samples that I saw gave a constant of (WM_USER + 38) for EM_POSFROMCHAR, which works great with RichTextBox, but not with TextBox. I found out if you use &HD6 for EM_POSFROMCHAR, it works great with both RichTextBoxes and TextBoxes. I found this out by using one of my incident support items from Microsoft. Still waiting to here from them on what (WM_USER + 38) is used for.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.