Click here to Skip to main content
15,889,838 members
Articles / Programming Languages / C++

CGrid Control

Rate me:
Please Sign up or sign in to vote.
4.14/5 (18 votes)
8 May 2007CPOL1 min read 68.7K   5.2K   48  
An article on a grid control built with Windows API. Also includes an MFC class
#if !defined(AFX_MFCGRID_H__496BBEC3_CCF3_4CC7_9CB2_1F28D5E8F687__INCLUDED_)
#define AFX_MFCGRID_H__496BBEC3_CCF3_4CC7_9CB2_1F28D5E8F687__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MFCGrid.h : header file
//
#include "..\api_grid_tester\grid_lib\grid_lib.h"
/////////////////////////////////////////////////////////////////////////////
// CMFCGrid window

class CMFCGrid : public CWnd
{
// Construction
public:
	CMFCGrid();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMFCGrid)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void PreSubclassWindow();
	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMFCGrid();

	// Generated message map functions
protected:
	//{{AFX_MSG(CMFCGrid)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_MFCGRID_H__496BBEC3_CCF3_4CC7_9CB2_1F28D5E8F687__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)


Written By
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions