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

Creation and memory mapping existing DBF files as alternative of data serialization during work with modified CListCtrl classes in virtual mode on dialogs of MDI application

, 22 Jul 2009
The demonstration of reading, writing and creation of standard DBF files with random access in memory instead of serialization of typical MFC application for descendants of CListCtrl classes in Virtual Mode.
ModifiedListCtrl04.zip
ModifiedListCtrl04
Bin
Main.exe
Dbf
First.dbf
Second.dbf
Third.dbf
ListCtrlEx
Main.aps
Main.clw
Main.dsp
Main.dsw
Main.ncb
Main.opt
Main.plg
res
Main.ico
MainDoc.ico
Toolbar.bmp
Toolbar2.bmp
Toolbar2_.bmp
/////////////////////////////////////////////////////////////////////////////
// HeaderCtrlEx.h : header file
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HEADERCTRLEX_H__EMERY_EMERALD__INCLUDED_)
	#define AFX_HEADERCTRLEX_H__EMERY_EMERALD__INCLUDED_

	#if _MSC_VER > 1000
		#pragma once
	#endif  // _MSC_VER > 1000
	
	#include "..\Main.h"

	/////////////////////////////////////////////////////////////////////////////
	// class CHeaderCtrlEx
	/////////////////////////////////////////////////////////////////////////////
	class CHeaderCtrlEx : public CHeaderCtrl {
		// Construction
		public:
			CHeaderCtrlEx();

		// Attributes
		public:
			//*** The meta table structure
			META_TABLE m_MetaTable;

			//*** The width of defect of displacement of the table header to the left
			UINT m_nHdrWidthDefect;

			//*** The height of defect of the table header
			UINT m_nHdrHeightDefect;

		protected:

		// Operations
		public:

		// Overrides
		public:

		// Implementation
		public:
			virtual ~CHeaderCtrlEx();

		protected:
			virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);

		// Generated message map functions
		protected:
			afx_msg LRESULT OnLayout(WPARAM wParam, LPARAM lParam);
			//afx_msg BOOL OnGetItem(WPARAM wParam, LPARAM lParam);
			//afx_msg void OnEndTrack(NMHDR *pNMHDR, LRESULT *pResult);

		DECLARE_MESSAGE_MAP()
	};

	//{{AFX_INSERT_LOCATION}}
	// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HEADERCTRLEX_H__EMERY_EMERALD__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

Emery Emerald
Software Developer
Ukraine Ukraine
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 22 Jul 2009
Article Copyright 2009 by Emery Emerald
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid