Append text to edit control
-
Hi i use SendMessage(hndl,WM_SETTEXT,0,buufer) to send data in the edit control............ every time the program runs it clears the old text from the edit control and writes the new one to it ......but i want to keep the old data in the edit control and appends the new one ...... tHanks in advance
AbidBhat
-
Hi i use SendMessage(hndl,WM_SETTEXT,0,buufer) to send data in the edit control............ every time the program runs it clears the old text from the edit control and writes the new one to it ......but i want to keep the old data in the edit control and appends the new one ...... tHanks in advance
AbidBhat
First Get Text from Control and then append your text to this text and then set this combined text to edit control Got it?
Manish Patel. B.E. - Information Technology.
-
Hi i use SendMessage(hndl,WM_SETTEXT,0,buufer) to send data in the edit control............ every time the program runs it clears the old text from the edit control and writes the new one to it ......but i want to keep the old data in the edit control and appends the new one ...... tHanks in advance
AbidBhat
-
Hi i use SendMessage(hndl,WM_SETTEXT,0,buufer) to send data in the edit control............ every time the program runs it clears the old text from the edit control and writes the new one to it ......but i want to keep the old data in the edit control and appends the new one ...... tHanks in advance
AbidBhat
I think you need to save previous data of your program on the registry or a file for read again.
-
Hi i use SendMessage(hndl,WM_SETTEXT,0,buufer) to send data in the edit control............ every time the program runs it clears the old text from the edit control and writes the new one to it ......but i want to keep the old data in the edit control and appends the new one ...... tHanks in advance
AbidBhat
manish is right, but there is a more efficient way: send
EM_SETSEL, -1, -1
to move the cursor to the end of the text sendEM_REPLACESEL, (TRUE/FALSE), (LPARAM) "your text"
to insert the text at the cursor location (i.e. the end)We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
blog: TDD - the Aha! | Linkify!| FoldWithUs! | sighist -
I think you need to save previous data of your program on the registry or a file for read again.
:omg: Not funny.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
-
:omg: Not funny.
INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
I dont think my replay is funny? :doh:
-
Hi i use SendMessage(hndl,WM_SETTEXT,0,buufer) to send data in the edit control............ every time the program runs it clears the old text from the edit control and writes the new one to it ......but i want to keep the old data in the edit control and appends the new one ...... tHanks in advance
AbidBhat