Help with CEdit controls in MFC
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,
Re: Help with CEdit controls in MFC
Quote:
Originally Posted by
hijjawi
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)
You can use CWnd::SetWindowText to replace the text in the edit box.
Quote:
And when I used the List control for the output box its works like list function there is an ordering happened for output texts.
If you've made your dialog with the dialog editor, then you can change this in the properties of the list control.
Re: Help with CEdit controls in MFC
Thanks alot for your help. its works fine.
best regards,
Re: Help with CEdit controls in MFC