After the previous question with issue in inserting a Rich Edit control to MFC Dialog based application I am here with another question:
I am using Visual Studio 2015 So I am creating a Dialog based MFC application:
If I add a Rich Edit control from the Toolbox it works fine But: How to create it programmatically?
In InitInstance
I added:
AfxInitRichEdit2();
And in button "Press" handler l added:
CRichEditCtrl edt;
RECT rct{ 10, 10, 200, 200 };
edt.Create(WS_VISIBLE | WS_CHILD | ES_MULTILINE, rct, this, 150);
But when running the application No Rich edit there?!!