Hey,
Say I created a second dialog in a Visual C++ MFC project. I then give it a class named CSecondDialog.
The way to make it show up is
However, lets say I've got a textbox on the dialog. How could I fill it with text before the window shows up? I didn't see a CSecondDialog::OnInitDialog() function anywhere.Code:CSecondDialog dlg; dlg.DoModal();
I tried doing this
But when that ran it gave me a debug error =[.Code:CSecondDialog dlg; dlg.m_editBox.ShowWindowText ( _T("TEXT") ); dlg.DoModal();
How can I put text into that exit box (variable: m_editBox)?
Thanks in advance :-)
-Guitarist809