CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    63

    Derving view from CListView

    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



  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: Derving view from CListView

    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.


  3. #3
    Join Date
    Apr 1999
    Posts
    383

    Re: Derving view from CListView

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured