MikeAbrams
Programmer
Hello all. I am brand new to VC++ but I am learning as I go.
My current project is to output user input from an Edit Box to another Edit Box or Static Text Box. My problems are three-fold at the moment:
1. First string is sent fine, subsequent strings overwrite the existing text rather than appending on a new line.
2. Lack of carriage return feature in output box.
3. Previous string entered by user remains in Input Edit Box.
My code is as follows and any help would be appreciated:
void CHostDlg::OnSend()
{
UpdateData(TRUE);
CEdit* pEdit = (CEdit*)GetDlgItem(IDC_EDIT1);
CEdit* pEditShow = (CEdit*)GetDlgItem(IDC_EDIT2);
pEdit->GetWindowText(m_EDIT1);
pEditShow->SetWindowText(m_EDIT1);
}
My current project is to output user input from an Edit Box to another Edit Box or Static Text Box. My problems are three-fold at the moment:
1. First string is sent fine, subsequent strings overwrite the existing text rather than appending on a new line.
2. Lack of carriage return feature in output box.
3. Previous string entered by user remains in Input Edit Box.
My code is as follows and any help would be appreciated:
void CHostDlg::OnSend()
{
UpdateData(TRUE);
CEdit* pEdit = (CEdit*)GetDlgItem(IDC_EDIT1);
CEdit* pEditShow = (CEdit*)GetDlgItem(IDC_EDIT2);
pEdit->GetWindowText(m_EDIT1);
pEditShow->SetWindowText(m_EDIT1);
}