Article View: comp.os.ms-windows.programmer.tools.mfc
Article #148Creating a derived CView embedding my own control
From: Cyril OTHENIN-GIRARD
Date: Fri, 18 Jun 1999 00:00
Date: Fri, 18 Jun 1999 00:00
26 lines
1754 bytes
1754 bytes
Hello everybody, I have extended CListCtrl by creating a derived class (called CListCtrlEx) and adding new functionnalities to it (sorting, ...). Now I wish to create my own derived class from CView (lets call it CListViewEx), that will encapsulate my CListCtrlEx control in a view. Problem is, I cannot figure how to do it. 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. Can anyone help me ? A sample code of an own made CxxxView encapsulating a CxxxCtrl would be enough, but any help will be appreciated. Thanks a lot. -- Cyril OTHENIN-GIRARD. mailto:othenin@topic.fr PS : Please excuse my poor english, i am french.
Technical Details
Message-ID:
<vcva3.107$mK3.3313@nnrp3.clara.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1138df,dc012265266715c3,start X-Google-Attributes: gid1138df,public X-Google-Thread: 104d65,dc012265266715c3,start X-Google-Attributes: gid104d65,public X-Google-Thread: 1053e6,dc012265266715c3,start X-Google-Attributes: gid1053e6,public From: "Cyril OTHENIN-GIRARD" <othenin@freesurf.fr> Subject: Creating a derived CView embedding my own control Date: 1999/06/18 Message-ID: <vcva3.107$mK3.3313@nnrp3.clara.net> X-Deja-AN: 491136578 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@freesurf.fr X-Trace: nnrp3.clara.net 929726363 212.43.207.233 (Fri, 18 Jun 1999 18:19:23 BST) NNTP-Posting-Date: Fri, 18 Jun 1999 18:19:23 BST Newsgroups: comp.os.ms-windows.programmer.tools.mfc,fr.comp.os.ms-windows.programmation,microsoft.public.vc.mfc