Click to See Complete Forum and Search --> : Derving view from CListView


newf
April 14th, 1999, 09:09 PM
Hello,
I am a beginner to DOC/VIEW as you will soon see. However, I am trying to figure out how to make my view class be derived from CListView. I have made a default SDI from AppWizard and it generates the view to be derived from CView. What is the easiest way to make this be a CListView?

Thanks,
Eric

Franky Braem
April 15th, 1999, 03:07 AM
When you create a MFC project with MFC AppWizard, you can change the Base Class in Step 6. On the base class combobox choose the CListView as your base class and your view will be derived from it.

Dave Lorde
April 15th, 1999, 05:42 AM
If you've already generated your app, do a search and replace, replacing CView with CListView throughout. Don't forget to include afxcview.h in your view header.

Dave