I'm trying to create a simple program, if you can even call it that.
It has a main dialog and inside an edit box/control thing. picture
When I try to debug (I'm using MS Visual Studio 2013) I get the "I-beam" (the flashing text-thing pointer) but I can't input any text. picture
Questions: Why? How to fix?
Also, later on I want to try writing the inputted text into a txt file. I've tried searching for it, and found that you have to use the string method... Beyond that I could not understand the explanations ;(
CODE:
void Cedit2textDlg::OnEnChangeEdit1()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialogEx::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
}
program is called edit2text. This is the ONLY part about the edit box I have in my main edit2textDlg.cpp file. The .rc you can see in the first picture.
I have found a somehow similar problem that was solved using dlg.DoModal(); and creating a variable for the edit box with a value-category, but could not understand how and why I should use it.