Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

CTreeView Iterator

, 27 Mar 2002
An iterator to parse subtree and execute function on each item/node
ctreeview_iterator_demo.zip
Debug
res
CodeProjectSample.aps
CodeProjectSample.clw
CodeProjectSample.dsp
CodeProjectSample.dsw
CodeProjectSample.ncb
CodeProjectSample.opt
CodeProjectSample.plg
CodeProjectSample.positions
CodeProjectSample.ico
CodeProjectSampleDoc.ico
Toolbar.bmp
ctreeview_iterator_src.zip
//*******************************************************************
//
// FILE:       TreeViewIterator.h
//
// AUTHOR:     Julien Martino
//
// PROJECT:    ProjectLeading
//
// COMPONENT:  CTreeViewIterator
//
// DATE:       01/29/2002
//
// COMMENTS:   Parser, dedicated to LeftView
//
//
//*******************************************************************
//Includes
#if !defined( AFX_TREEVIEWITERATOR_H__7014EA35_A94A_4E0B_8CD5_A5881FF2D056__INCLUDED_ )
    #define AFX_TREEVIEWITERATOR_H__7014EA35_A94A_4E0B_8CD5_A5881FF2D056__INCLUDED_

    #include "LeftView.h"

    #if _MSC_VER > 1000
        #pragma once
    #endif //_MSC_VER > 1000

//TreeViewIterator.h : header file
//
//
/////////////////////////////////////////////////////////////////////////////////
//CTreeViewIterator window
typedef int ( *FuncPtrView ) ( CLeftView * tTree, HTREEITEM tiItem );

//*******************************************************************
// CLASS		: CTreeViewIterator
// COMMENTS     : Parser, dedicated to LeftView
// CREATED BY	: Julien Martino
// DATE         : 01/29/2002
//*******************************************************************
class CTreeViewIterator :
    public CTreeCtrl
{
    //Constructor
    public:

		CTreeViewIterator ( void );

    
	//Attributes
    public:


    //Operations
    public:

        int ApplyFunction ( CLeftView *tvView, HTREEITEM tiStart, FuncPtrView Function );

        //Overrides
        //ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CTreeViewIterator)
    //}}AFX_VIRTUAL

	//Implementation
    public:

        virtual ~CTreeViewIterator ( void );

    //Generated message map functions

    protected:
    //{{AFX_MSG(CTreeViewIterator)
    // NOTE - the ClassWizard will add and remove member functions here.
    //}}AFX_MSG
        DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
//Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif //!defined(AFX_TREEVIEWITERATOR_H__7014EA35_A94A_4E0B_8CD5_A5881FF2D056__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Julien Martino
Web Developer
France France
After years passed in services companies, I now work for Euromaster, an international group dedicated to vehicules maintenance. I also develop for my own usage. I both use Java and C++ languages and now, I integrate XML documents and XSL syntax in my applications even if SQL Databases like Oracle remain my main data sources

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 28 Mar 2002
Article Copyright 2002 by Julien Martino
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid