Use of Rich edit controls

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.