🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.mfc
Article #149

Re: Creating a derived CView embedding my own control

#149
From: David Lowndes
Date: Sat, 19 Jun 1999 00:00
22 lines
1652 bytes
>I walked throw the MFC code of CListView and CCtrlView to learn how it is
>"natively" done, and I could not find out where the link between CListView
>and CListCtrl is made.
>The only thing I found is that "SysListView32" is passed as Window Class to
>the construtor of CCtrlView when you create a CListView.

Cyril,

I think you're on the right track.

Since your extended class is still a list control you don't need to
create anything other than a normal list control. I think all you need
to do is alter the corresponding CListCtrl usage to your derived class
CListCtrlEx, and if I remember correctly, that is largely just the
GetXXXCtrl method which needs to return a reference to your
CListCtrlEx class.

Dave
----
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.
Technical Details
Message-ID: <376b9177.163404@msnews.microsoft.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <vcva3.107$mK3.3313@nnrp3.clara.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1138df,dc012265266715c3
X-Google-Attributes: gid1138df,public
X-Google-Thread: 104d65,dc012265266715c3
X-Google-Attributes: gid104d65,public
X-Google-Thread: 1053e6,dc012265266715c3
X-Google-Attributes: gid1053e6,public
From: davidl@mvps.org (David Lowndes)
Subject: Re: Creating a derived CView embedding my own control
Date: 1999/06/19
Message-ID: <376b9177.163404@msnews.microsoft.com>
X-Deja-AN: 491410733
Content-Transfer-Encoding: 7bit
References: <vcva3.107$mK3.3313@nnrp3.clara.net>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Reply-To: davidl@mvps.org.---
Newsgroups: comp.os.ms-windows.programmer.tools.mfc,fr.comp.os.ms-windows.programmation,microsoft.public.vc.mfc