Hello All,
I am doing a string substitution with EM_SETSEL and I want to make sure that it only occurs at the same position or same line as where the text caret/cursor are. To do this, I am trying to find out where the caret position is within an edit control - e.g. and compare to a particular string offset. I know about GetCaretXY but that gives me the x,y location whereas I am trying to find the position in the edit control.
I see EM_GETLINE can return the line of a string but that doesn't tell me the line or position in editor of the caret.
Any thoughts?
Thanks,
S
Whoops I think I found it:
https://www.quickmacros.com/forum/showth...&pid=24400
Thanks!
S
I am doing a string substitution with EM_SETSEL and I want to make sure that it only occurs at the same position or same line as where the text caret/cursor are. To do this, I am trying to find out where the caret position is within an edit control - e.g. and compare to a particular string offset. I know about GetCaretXY but that gives me the x,y location whereas I am trying to find the position in the edit control.
I see EM_GETLINE can return the line of a string but that doesn't tell me the line or position in editor of the caret.
Any thoughts?
Thanks,
S
Whoops I think I found it:
https://www.quickmacros.com/forum/showth...&pid=24400
Thanks!
S