I'm trying to wrote a sort of keyboard on screen, so when an user presses a button, corresponding to a letter from A to Z, in the edit control included in the main screen under the virtual keyboard, the user could see the letter that he pressed and the entire word!
I'm able to write an easy way for this:
But when I press another button the previous letter is ovewritten.Code:LPTSTR item = "Q"; this->SetDlgItemText(IDC_EDIT1,item); }
For example:
1.Button pressed Q->(result in the IDC_EDIT) Q
2.Button pressed U->(result in the IDC_EDIT) U (instead of QU)
3.Button pressed E->(result in the IDC_EDIT) E (instead of QUE)
4.Button pressed U->(result in the IDC_EDIT) U (instead of QUEU)
5.Button pressed E->(result in the IDC_EDIT) E (instead of QUEUE)
Does anybody has an hint, helping me with this problem?