Lines in Edit Control
-
Have searched and searched the forum but cannot find the answer....I am using code found on CodeProject to append lines to an edit box in an MFC application I am playing with.(Hobby Programmer). I want to delete the second line of the text (entered programmatically by selchange of combo box)if the text is different from the existing. For the life of me I cannot figger this out. thanks in advance. Michael (previously vb now c++) Judy
-
Have searched and searched the forum but cannot find the answer....I am using code found on CodeProject to append lines to an edit box in an MFC application I am playing with.(Hobby Programmer). I want to delete the second line of the text (entered programmatically by selchange of combo box)if the text is different from the existing. For the life of me I cannot figger this out. thanks in advance. Michael (previously vb now c++) Judy
It has been a while since I have done any thing like this but if you look in the index of the MSDN library and find "edit controls [Win32]" you should be able to figure it out. If I remember right, you need to select the text to be deleted (EM_SETSEL) and then send WM_CLEAR [delete/clear current selection] message to the control or EM_CUT [delete and copy current selection to the clipboard]. INTP
-
It has been a while since I have done any thing like this but if you look in the index of the MSDN library and find "edit controls [Win32]" you should be able to figure it out. If I remember right, you need to select the text to be deleted (EM_SETSEL) and then send WM_CLEAR [delete/clear current selection] message to the control or EM_CUT [delete and copy current selection to the clipboard]. INTP