Hi Guys!
I have a rich edit control like this. But I am using it for first time. I couldn't manage how to clear everything in the box. Can anbody modify the code for me, please? Select everything and delete? Or replace with a null string? Whatever... I couldn't make select all :(
Thanks a lot!
Code:
SendMessage hWndRichEd, EM_SETSEL, -1, -1
SendMessage hWndRichEd, EM_GETSEL, VarPtr(lngSelStart), 0
strLine = ""
SendMessage hWndRichEd, EM_REPLACESEL, 0, StrPtr(strLine)
Thanks a lot!