Microsoft KB Archive/66996

From BetaArchive Wiki

Petzold’s HEXCALC and DLGWINDOWEXTRA

PSS ID Number: Q66996 Article last modified on 11-05-1993

3.00 MS-DOS

The information in this article applies to:
- Microsoft Windows Software Development Kit for Windows version 3.0

SUMMARY

The HEXCALC sample program, found in chapter 10 of Charles Petzold’s “Programming Windows,” uses a private dialog class. The requirements for a private dialog class changed between Windows version 2.x and version 3.00. Therefore, the program as presented in the first edition of the book will not work correctly in Windows 3.00 unless the WNDCLASS structure that is used to register the window class is changed. The cbWndExtra field of this structure must contain the value DLGWINDOWEXTRA. For more information on private dialog classes, please refer to the TIPS.TXT file that is installed with the Windows 3.00 Software Development Kit (SDK). This file contains a set of notes provided by Microsoft Product Support Services to help answer some of the questions most commonly asked by developers of Windows 3.00 applications. These notes are addressed to new Windows developers, as well as to those moving Windows 2.x applications to Windows 3.00.

Additional reference words: 3.00 KBCategory: KBSubcategory: UsrDlgsRare/misc Copyright Microsoft Corporation 1993.