Microsoft KB Archive/42112

MSJ WHATSIZE Sample Windows Application

PSS ID Number: Q42112 Article last modified on 05-23-1991

MS-DOS

Summary: The following is a summary of the WSZ program found in the “Microsoft Systems Journal” and in the Software/Data Library: Issue: December 1986, Vol. 1, No. 2, Pages 13-24 Title: “A Step-by-Step Guide to Building Your First Windows Application” Author: Charles Petzold Keyword: WHATSIZE This file can be found in the Software/Data Library by searching on the keyword WHATSIZE, the Q number of this article, or S10013. WHATSIZE was archived using the PKware file-compression utility. The following text is taken from the cover of the “Microsoft Systems Journal”: At first, creating a Microsoft Windows-based application seems to be a complex process involving an oddly structured C program that uses Windows functions and macros. This simple program, WSZ, provides a model for building a Windows application. More Information: The Whatsize (WSZ) program demonstrates how to write and build a simple Windows application. The program itself is designed to show you the basics of writing a simple Windows application. The program displays only the size of the window’s client area in various different units (pixels, inches and millimeters). Some of the Windows programming concepts used in WSZ are as follows: 1. Setting up your environment to build a Windows application 2. Drawing an icon with the icon editor 3. Building a resource .RC file 4. Initializing an application 5. Creating a window procedure 6. Adding an “About” box to the “System” menu 7. Creating menus and dialog boxes 8. Listing of the steps to build a Windows application