Re: Find The Text :-)
- From: "Mike Williams" <mikea@xxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 12:45:56 +0100
"Ivar" <Ivar.ekstromer000@xxxxxxx> wrote in message news:JE6pi.956$ie3.577@xxxxxxxxxxxxxxxxxxxxxxx
P.S. You said you were having probs with "EM_POSFROMCHAR"
I could not get it to work either until I started to pass wParam and
lParam both ByVal. will that fix it for you?
Example
RetVal = SendMessage(Text1.hwnd, EM_POSFROMCHAR, ByVal StrPos, ByVal 0)
It's okay. I've got it sorted now. I had completely forgotten that the details of the arguments for the EM_POSFROMCHAR message, and also the way in which the results are returned, are completely different for a RichTextBox than they are for a standard TextBox. Thanks for the reminder.
Mike
.
- Follow-Ups:
- Re: Find The Text :-)
- From: Ivar
- Re: Find The Text :-)
- References:
- Find The Text :-)
- From: Ivar
- Re: Find The Text :-)
- From: Mike Williams
- Re: Find The Text :-)
- From: Ivar
- Re: Find The Text :-)
- From: Mike Williams
- Re: Find The Text :-)
- From: Ivar
- Find The Text :-)
- Prev by Date: Re: Looking for API equvalent of xcopy command
- Next by Date: Re: Line on top of user control and Frame/PictureBox
- Previous by thread: Re: Find The Text :-)
- Next by thread: Re: Find The Text :-)
- Index(es):
Relevant Pages
|