
newbie question, plz help
Hi. Well first you should get a book on
MFC :) but I can explain a bit
here. When you create a project with Document/View support, you create
templates for each document type you want to manipulate. 3 classes are
created for you, CChildFrm, CAppNameDoc and CChildView. The first class is
the MDI child window frame, you can reuse it in any document template or
create a new one for each. Then you have a CDocument-derived class; this
class is the document itself where you handle _the document_ data, no
drawing there, just the document related stuff. Finally you have a
CView-derived class, this is where you draw your document, you can call it's
GetDocument method to get a pointer to the document class. If you're going
to add dynamic controls I would suggest making them children of the CView
class.
Hope this was any informationfull.
Quote:
> Hi
> I have created a MDI project with multiple SDI, i managed to create
> dynamics Listbox on Childframe. But i don't use Cview and i think that my
> solution is bad to make a data treatment .
> Can you explain to me how to use the Cview class?
> And where i should put my code about dynamic Listbox?
> thanks
> Nico