CHART: Demonstrates Bar/Line Charting

CHART implements a simple charting application. You can enter a data set (list of integers), display the data in bar or line chart form, print the chart, save the data to disk, and read in previously saved data.

The CHART source code illustrates the following concepts:

Dialog box management

Document state management (dirty, clean)

Using graphics device interface (GDI) calls to draw a graph to a device context

Using Microsoft(R) Foundation Class (MFC) CFile and CArchive classes to save and restore user data

Printing

CHART requires special MFC libraries and include files; see the "MFC Libraries" and "MFC Include Files" abstracts to copy these files to your development system. CHART uses the following libraries: MLIBCEW.LIB (C Windows runtime library), LIBW.LIB (Windows library), either MAFXCW.LIB (MFC medium-model Windows retail library) or MAFXCWD.LIB (MFC medium-model Windows debug library), and COMMDLG.DLL.

To build this application, you must have Microsoft C/C++ version 7.0 installed on your system.

{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the chart project." /C"samples}