CTreeView and CListView problem.
elie e.e. bensaci -- ebensaci@nortel.ca Friday, September 06, 1996 Hello there, Environment: MSVC 4.1, Windows 95. I'm developing an application based on 2 views CTreeView and CListView using a 1x2 Splitter Window. Each CTreeView items is associated with a row of data in the CListView (so they look like labels for the ListView). everything is build dynamically, whatever the user click on any CTreeView item to expand it, the CListView is updated so that every row in the CListView is associated to an Item in CTreeView. Any ideas, samples that I can use! Thanks. Elie.
refay@carbon.cudenver.edu Saturday, September 07, 1996 Environment: MSVC 4.1, Win95 I'm doing that. Using document-view architecture, both the list and the tree view are views on the same doc. A click on the tree causes it to do a doc->UpdateAllViews(HINT_RELOAD_LIST,filter). Then when the listview gets the HINT_RELOAD_LIST with the associated filter, it goes to the doc to get the information expected of it. Doing the splitter view itself is just cookbook out of the docs or out of Programming Win95 with MFC. -Randy > Hello there, > > Environment: MSVC 4.1, Windows 95. > > I'm developing an application based on 2 views CTreeView and CListView u sing > a 1x2 Splitter Window. Each CTreeView items is associated with a row of data in the CListView (so they look like labels for the ListView). everyth ing is build dynamically, whatever the user click on any CTreeView item to expand it, the CListView is updated so that every row in the CListView is associated to an Item in CTreeView. > > Any ideas, samples that I can use! > > Thanks. > Elie. > -- --- Randy Fay - refay@carbon.cudenver.edu, ref@rmi.net
Ian Brown -- Ian.Brown@ait.co.uk Monday, September 09, 1996 Hi. Two samples spring to mind. 1) MFCENUM on MSDN (search for "MFCENUM") Article is titled 'Browses the Shell Name Space in Windows 95' 2) CHICOAPP on MSDN (search for "CHICOAPP") Article is titled 'Creating a Windows 95 Explorer-like Application' If you do not have access to the MSDN (Microsoft Developer Network Development Library), try the Microsoft web site and search on the same keywords - Last time I looked, these article were both referenced from the Win32 Developer section (www.microsoft.com/win32dev). HTH Ian ______________________________ Reply Separator _________________________________ Subject: CTreeView and CListView problem. Author: mfc-l@netcom.com at Internet Date: 09/09/96 08:37 Hello there, Environment: MSVC 4.1, Windows 95. I'm developing an application based on 2 views CTreeView and CListView using a 1x2 Splitter Window. Each CTreeView items is associated with a row of data in t he CListView (so they look like labels for the ListView). everything is build dyn amically, whatever the user click on any CTreeView item to expand it, the CListVi ew is updated so that every row in the CListView is associated to an Item in CTre eView. Any ideas, samples that I can use! Thanks. Elie.
Ray Frohnhoefer -- rayf@datatree.com Monday, September 09, 1996 Elie, Check out MFCDRAG.EXE at www.microsoft.com in the support area. I believe there is a similar example, LSTDRAG.EXE available as well. If you don't have web access, you should be able to get the dial-up numbers from your books online. Regards, Ray F. >Hello there, > >Environment: MSVC 4.1, Windows 95. > >I'm developing an application based on 2 views CTreeView and CListView using >a 1x2 Splitter Window. Each CTreeView items is associated with a row of data in the CListView (so they look like labels for the ListView). everything is build dynamically, whatever the user click on any CTreeView item to expand it, the CListView is updated so that every row in the CListView is associated to an Item in CTreeView. > >Any ideas, samples that I can use! > >Thanks. >Elie. > > > Gott wuerfelt nicht. - Albert Einstein ---------------------------------------------------------------------------- * Ray Frohnhoefer email: rayf@datatree.com, Frohnzie@aol.com * DataTree Corporation web: http://www.datatree.com * 550 West C Street, Ste. 2040 phone: (619) 231-3300 x131 * San Diego, CA 92101 fax: (619) 231-3301 *
| Вернуться в корень Архива |