Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EM_POSFROMCHAR and TextBox

Status
Not open for further replies.

rdavis

Programmer
Apr 29, 2002
157
0
0
US
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.

Rob
 
remedy,

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.

Rob Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top