vico
vico

Reputation: 18221

MFC form designer

According to my understanding if I need design MFC form with button I have only one possibility - write everything in code editor. There is no designer. Except cases when I need design dialog form. I can use designer and generate resources for dialogs. But in case normal Frame there is possibility to drop buttons in designer window. Is that truth?

Upvotes: 0

Views: 537

Answers (2)

Sivaraman
Sivaraman

Reputation: 458

  1. Go to Resource view
  2. Create a new dialog template
  3. Double click the dialog template name
  4. Once the dialog opens, the toolbox get enabled
  5. You can drag&drop the controls to the form now

Upvotes: 0

dwo
dwo

Reputation: 3636

If you want to use a form as a main window, create your project with a CFormView as a base class. You can select that inside the new project wizard. Then you get a dialog resource for that view. It works just like a dialog.

Upvotes: 2

Related Questions