I am new with MFC and I have an dialog interface contains an button, input box(edit control), and output box(edit control or list control).

Mainly my problem is when I entered something in the input box(edit control) its remain there and I need after entering to delete the entered text or remove it (clear the input box)

And the second problem which i need help also is I used for the output box in the first time edit control and the output texts overrided the previous output text and I need to keep the both in the output box window because its like a chatting output window keep the both utterances the entered text and the output text.


And when I used the List control for the output box its works like list function there is an ordering happened for output texts.


I need the output texts appears like for example an real chatting via an MSN :


He says: hello there
You says:hello


and how I can make an automatic numbering for the output texts

2 :he says: i am fine.
2: you says : how are you?
1: he says: hello there
1: you says : hello



please anyone could help me and it will be appreciated.

Best Regards,