Re: Diff between View, FormView and Dialog???
"Jimbo_Jimbob_Jiminator" <JimboJimbobJiminator@discussions.microsoft.com>
wrote in message news:0009CA2F-7994-4AE0-9F1F-A33638FE1964@microsoft.com...
I cannot put tabbed pages onto a CView, correct? I can put tabbed pages on
a
CFormView, correct? If these are correct, I still don't understand WHY!!!
Can somebody break this down into a Kinder-garden level explanation? After
that, it may be nap time. Then we get to outside and play in the
playground!!
Regards, Jim
A CView is for painting your own window, such as graphs or text that you
need to paint yourself. It is an utterly blank slate that you paint on. Do
not use a CView for controls.
Forget "forms." That term is ill-defined in C++ programming.
A dialog template (built in the resource editor by dragging and dropping
controls) is the usual way to display a set of controls. There are at least
two ways to use a dialog template in MFC. One way is to display it in a
CDialog-derived class. Another way is to display it in a CFormView-derived
class. What's the difference? Simple: A dialog pops up over your main
window and can be moved around and closed independently of the main window.
A formview fills your main window (or a portion of it) and cannot be moved
around or closed independently of it.
--
Scott McPhillips [VC++ MVP]