Click here to Skip to main content
12,512,130 members (53,863 online)
Click here to Skip to main content

Stats

648.9K views
9.3K downloads
330 bookmarked
Posted

SuperGrid - Yet Another listview control

, 8 Dec 1999 CPOL
A combination list control and tree control with checkbox capability
// NewItem.cpp : implementation file
//

#include "stdafx.h"
#include "SuperGrid.h"
#include "NewItem.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CNewItem dialog


CNewItem::CNewItem(CWnd* pParent /*=NULL*/)
	: CDialog(CNewItem::IDD, pParent)
{
	//{{AFX_DATA_INIT(CNewItem)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CNewItem::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CNewItem)
	DDX_Control(pDX, IDC_EDIT1, m_Edit);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CNewItem, CDialog)
	//{{AFX_MSG_MAP(CNewItem)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNewItem message handlers

void CNewItem::OnOK() 
{
	// TODO: Add extra validation here
	m_Edit.GetWindowText(m_strItem);	
	CDialog::OnOK();
}

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

You may also be interested in...

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