Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top