MFC WYSIWYG editor

2k views Asked by At

I want to make an application in Visual C++ 2012 using MFC frameworks using Document/View structure; I want edit my view (that is the main window) with an editor, not handcoding, but Visual Studio seems that can edit in WYSIWYG mode just dialog boxes; I don't want to make a 'dialog based application', I want to make a Document/View application and edit my View with an editor WYSIWYG; Any solution?

3

There are 3 answers

0
cha On BEST ANSWER

You need to use CFormView as a base class when you creating your MFC application. CFormView

If you already have a project, then add a new form using the class wizard. Select CFormView as a base class.

When you open Resource View your new form will be listed in "Dialog" folderCFormView editor

2
user2913447 On

MFC based apps have a WYSIWYG editor. Open the Resource Files folder of your dialog, SDI or MDI project and then open the .rc file. Menus and a toolbox should open up ready for editing.

0
ScottMcP-MVP On

In the last step of the wizard that creates a new document/view application, change the view base class from CView to CFormView. When you do that the CFormView can be edited just like a dialog.