Hi everyone!
I need a good tutorial about creating a text editon in vc ++. Actually I need to "send" data in a notepad every time I write double numbers on edit control and press save. I am new and I have no idea. I made an effort and wrote something but my dialog (where the edit control is) don't even open when I run the executable.
void CDataDialog::OnEnChangeEdit1()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateData(TRUE);
}
Thank you for your answer! :) I made these changes but still didn't work:
1 2 3 4 5 6 7 8 9 10 11 12 13
void CDataDialog::OnEnChangeEdit1()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
//UpdateData(TRUE);
CString buffer;
CEdit *pEdit = (CEdit*)GetDlgItem(IDC_EDIT1);
pEdit->GetWindowText(buffer);
}
1 2 3 4 5 6 7 8 9 10
void CInputView::OnLinefeaturesData()
{
// TODO: Add your command handler code here
CInputDoc* pDoc = GetDocument();
CDataDialog DialogWindow;
// Now show the dialog
DialogWindow.DoModal();
}