****************************************************************************** * Canvas Classes Example 3 - Multi Cell Canvas * * * * COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. * * * * DISCLAIMER OF WARRANTIES: * * The following [enclosed] code is sample code created by IBM * * Corporation. This sample code is not part of any standard IBM product * * and is provided to you solely for the purpose of assisting you in the * * development of your applications. The code is provided "AS IS", * * without warranty of any kind. IBM shall not be liable for any damages * * arising out of your use of the sample code, even if they have been * * advised of the possibility of such damages. * ****************************************************************************** * NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE * ****************************************************************************** * Canvas Classes Example 3 - Multi Cell Canvas * * key functions: * * - create a main window * * - run the current application * * - create a multi cell canvas and use as client area * * canvas has 4 columns and 7 rows * * one row and one column are expandable * * all other controls attached to canvas * * - create static text controls * * - create check boxes, radio buttons and push buttons * * - control cursor and tab movement between different groups * * - process 'Command' events generated by the push button * * - load strings from resource bound to the exe * ****************************************************************************** *************************************************************************** * File list: * * README.TXT - Readme file for MCELCV.EXE. * * AMCELCV.CPP - Source code for MCELCV.EXE * * AMCELCV.HPP - Class header file form MCELCV.EXE. * * AMCELCV.H - Defines for MCELCV.EXE * * AMCELCV.RC - Resource File for MCELCV.EXE * * AMAKE.MAK - Make file to create MCELCV.EXE. * * AMAKE.CMD - Command file to create MCELCV.EXE. * * CLEANUP.CMD - Command file to clean up (erase) the following * * generated files: MCELCV.EXE, AMCELCV.OBJ, * * AMCELCV.RES, and AMCELCV.ERR. * *************************************************************************** *************************************************************************** * File Relationship Diagram (Files in uppercase, Programs in lowercase) * * * * AMCELCV.H * * ³ ³ * * AMCELCV.HPP ³ ³ * * ³ ³ ³ * * ³ ³ ³ * * v ³ ³ * * AMCELCV.CPP <ÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÄÄÄ> AMCELCV.RC * * ³ ³ * * ³ rc -r * * ³ ³ * * v AMCELCV.RES * * icc -c ÄÄÄÄ> AMCELCV.OBJ ³ * * ³ ³ * * v ³ * * icc /Tdp ³ * * ³ ³ * * v v * * MCELCV.EXE ÄÄÄÄÄÄÄÄ> rc ÄÄÄÄÄÄÄÄÄÄÄ> MCELCV.EXE * *************************************************************************** *************************************************************************** * To build, run and cleanup MCELCV.EXE: * * * * Run AMAKE.CMD * * Run MCELCV.EXE * * Run CLEANUP.CMD * * * * AMAKE.CMD compiles and links MCELCV.EXE. * * CLEANUP.CMD cleans up the files built by AMAKE.CMD. * ***************************************************************************