You have not used a rich edit control before, thinking that it is using the same method as edit box. I built a single document project A, a menu of a pop-up dialog box B, and then by a button of B pop-up dialog box C.
The code is as follows:
void B::onbutton1 ()
{
Ccdlg Dlg;
Dlg. DoModal ();
}
But click the dialog box B button, the dialog box C has not been bouncing out. I was wondering. At first I thought it was because the dialog box C has too many controls. dialog box C has 11 edit controls, a rich edit control, and 3 combo box,14 static text,3 buttons. To confirm my idea, I've created more than one dialog box, and I've found a pattern: as soon as I add a rich edit control, the dialog box doesn't pop up. It appears that the problem is with the rich edit control. So I went to CSDN Forum and VC Knowledge Base to ask others. Someone told me to initialize the rich edit control before using it. So the problem was solved.
Programming is a knowledge of practice. You never know how to use it if you don't practice it.