Rich Edit control

xiaoxiao2021-04-06  334

No Rich Edit controls were used before, as used as it used to use and Edit Box. I built a single document project A, popped up dialog box B, and then pops up the dialog box by a button of B.

code show as below:

Void b :: onbutton1 ()

{

CCDLG DLG;

Dlg.domodal ();

}

However, click the button of the dialog box, the dialog box has not bounced. I am very wondering. I thought it was because the controls of the dialog box were too much. Dialog box has 11 Edit controls, a Rich Edit control, 3 COMBO BOX, 14 Static Text, 3 buttons. In order to confirm my thoughts, I have built a number of dialogs again, I found a rule: As long as I add the RICH Edit control, the dialog cannot be popped up. It seems that the problem is in the Rich Edit control. So I went to the 9CBS Forum and the VC Knowledge Base asking others. Others tell me to initialize first before using the RICH Edit control. So the problem is solved.

Programming is a practical study. You will never know how to use it.

转载请注明原文地址:https://www.9cbs.com/read-132247.html

New Post(0)