Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Edit control modifies the current line of text
#7
resolved!
insert text to the end of the line where the cursor is located

Code:
Copy      Help
int lineStart = SendMessage(h EM_LINEINDEX line 0)
int lineLength = SendMessage(h EM_LINELENGTH line 0)
int lineEnd = lineStart + lineLength

SendMessage(h EM_SETSEL lineStart lineEnd)

How to take the text insertion point as the coordinate
GetCaretXY


Messages In This Thread
RE: Edit control modifies the current line of text - by Davider - 02-27-2023, 04:52 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)