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

SuperGrid - Yet Another listview control

, 8 Dec 1999 CPOL
A combination list control and tree control with checkbox capability
#if !defined(AFX_SUPERVW_H__48B715E6_80AB_11D2_9A97_002018026B76__INCLUDED_)
#define AFX_SUPERVW_H__48B715E6_80AB_11D2_9A97_002018026B76__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SuperVw.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSuperVw view
#include "MySuperGrid.h"

class CSuperVw : public CView
{
protected:
	CSuperVw();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CSuperVw)

// Attributes
public:
	CMySuperGrid m_List;
	BOOL m_bDrag;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSuperVw)
	public:
	virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// Implementation
protected:
	virtual ~CSuperVw();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CSuperVw)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void Ondialog();
	afx_msg void OnDialog1();
	afx_msg void OnToolsCollapse();
	afx_msg void OnToolsDelete();
	afx_msg void OnToolsExpand();
	afx_msg void OnToolsExpandall();
	afx_msg void OnToolsSearch();
	afx_msg void OnToolsSort();
	afx_msg void OnUpdateToolsDragdrop(CCmdUI* pCmdUI);
	afx_msg void OnToolsDragdrop();
	afx_msg void OnToolsDeleteall();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SUPERVW_H__48B715E6_80AB_11D2_9A97_002018026B76__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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Allan Nielsen

Switzerland Switzerland
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150224.1 | Last Updated 9 Dec 1999
Article Copyright 1999 by Allan Nielsen
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid