making a list the user can modify
Posted on 2004-08-18
I would like to know how to accomplish the following (cut to the bone).
Display a list which contains ON EACH ROW two fields that the user can edit and a button that the user can press to transfer the contents of the first field to the second field.
Row 1 Hello --> goodbye
Row 2 Test -->
User can click --> in row 2 and it becomes
Row 2 Test --> Test
or user can type directly into the field under goodbye so row 2 becomes
Row 2 Test --> User typed text here.
There could be any number of rows (tens, hundreds or even thousands theoretically). The button must only modify the fields in the line it is on. (Think database record).
Ultimately I want to use this in a CHTMLView - Microsoft Visual C, MFC class which uses a web browser control, but I will test it with IE initially.