#if !defined(AFX_DUMMYTREE_H__A9AA1905_9687_11D2_899F_0040055A6A93__INCLUDED_) #define AFX_DUMMYTREE_H__A9AA1905_9687_11D2_899F_0040055A6A93__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // DummyTree.h : header file // #define WM_FIRE_EVENT WM_USER+200 #define WM_DESTROY_SESSION WM_USER+201 #include <afxcview.h> #include "TransportInterface.h" #include "Composite.h" #include "TVTClient.h" #include "TestObject.h" ///////////////////////////////////////////////////////////////////////////// // CTestTree view class CTestTree : public CTreeView { protected: CTestTree(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(CTestTree) // Attributes public: TEST_SESSION Session (void) { return session; } bool SaveSession (TCHAR*); bool LoadSession (TCHAR*); bool PrintSession (void); bool InsertObject2Tree (TestObject&); protected: CImageList* pImageList; TEST_SESSION session; // Operations public: bool CreateImageList (void); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTestTree) public: virtual void OnInitialUpdate(); protected: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}AFX_VIRTUAL // Implementation protected: virtual ~CTestTree(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif // Generated message map functions protected: //{{AFX_MSG(CTestTree) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg LRESULT OnReceiveSignal(WPARAM,LPARAM); afx_msg LRESULT OnDestroySession(WPARAM,LPARAM); //}}AFX_MSG DECLARE_MESSAGE_MAP() public: afx_msg void OnDestroy(); afx_msg void OnTvnSelchanged(NMHDR *pNMHDR, LRESULT *pResult); }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_DUMMYTREE_H__A9AA1905_9687_11D2_899F_0040055A6A93__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.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)