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?
Asked
Active
Viewed 1,914 times
1
-
This isn't going to help you with your immediate problem, but you should read it nonetheless: [Does Visual Studio Rot the Mind?](http://www.charlespetzold.com/etc/doesvisualstudiorotthemind.html) – IInspectable Dec 02 '13 at 21:41
3 Answers
3
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.

ScottMcP-MVP
- 10,337
- 2
- 15
- 15
3
You need to use CFormView as a base class when you creating your MFC application.
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" folder

cha
- 10,301
- 1
- 18
- 26
1
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.

user2913447
- 55
- 8
-
I don't have dialog; Using Document/View, code generator doesn't make me dialog box! i have a CView, and I want to edit it – volperossa Dec 02 '13 at 18:58
-
No. You selected a CView a sa view, but with a CFormView you have exactly what all other are writing: A WYSIWIG Editor for dialogs. – xMRi Dec 03 '13 at 06:57