Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the difference between a CView and CFormView?

cformview cview difference
0
Posted

Whats the difference between a CView and CFormView?

1

A. Every MFC application has a view class responsible for the program’s appearance. Of the many possible view types, the two most common are: CView – Used mostly for paint and word-processor style programs. This view class gives you control over the entire client area, but will require you to do more work in order to interact with the form, such as creating a button, and responding to it’s click. CFormView – This is used primarily for forms-based programs, like a database. This view makes it easy to add controls to a program (like a button) and respond to their events, but harder to control the client area of the form. You get the chance to pick the view class type for your view, when you go through AppWizard. See the related topic on creating a CFormView-derived view.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123