To access the contents, click the chapter and section titles. Windows NT Win32 API SuperBible (Publisher: Macmillan Computer Publishing) Author(s): Richard Simon ISBN: 1571690891 Publication Date: 03/01/98 Brief Full Advanced Search this book: Search Search Tips Introduction Installation Dedication Chapter 1—Windows 95/NT 4 Programming New Features Minimum Requirements Style Guide Windows Window Components Window Operations Menus Menu Interface Menu Titles Menu Items Common Menus Input and Controls Buttons List Boxes Text Fields Other Controls Toolbars and Status Bars Visual Design Border Styles Visual Control States Flat Control Appearance System Integration The Registry Installation Chapter 2—The Win32 API Advantages of Win32 Converting 16-Bit Windows Applications Obsolete and Deleted Functions Changes in Messages Segmented to Linear Memory Sample Program Chapter 3—Creating Windows Creating the Main Window Creating Windows Using Existing Classes Messages When Creating Windows Creating Windows Function Descriptions Chapter 4—Windows Support Functions Window Class Data Attaching Data to a Window Changing the Appearance of Windows Windows Support Function Descriptions Chapter 5—Message Processing Message Flow Processing Messages Sources of Messages Reentrant Functions Message Hook Functions Message-Processing Function Descriptions Chapter 6—Menus Main Menus and Pop-up Menus Building Menus in the Resource File Adding a Menu to the Application’s Window Changing Menus Menu Messages Menu Support Function Descriptions Chapter 7—Resources The Resource Script File String Tables Custom Resources Resource Function Descriptions Chapter 8—Dialog Boxes Types of Dialog Boxes The Dialog Box Keyboard Interface Dynamic Dialog Boxes Dialog Template Statement Descriptions Dialog Box Control Statements Dialog Box Function Descriptions Chapter 9—User Input Functions Mouse Messages Keyboard Messages Virtual Keys User Input Function Descriptions Chapter 10—Scroll Bars Scroll Bar Basics Scroll Bar Position and Range Scroll Bar Messages Scroll Bar Function Descriptions Chapter 11—Memory Management Memory Architecture Global and Local Memory Virtual Memory Heaps Memory Management Function Descriptions Chapter 12—The Graphics Device Interface The Device Context Selecting Objects into a Device Context Private Device Contexts Origins and Extents GDI Function Descriptions Chapter 13—Bitmaps, Icons, and Metafiles Bitmaps Using DDB Bitmaps Using DIB Bitmaps Icons Using Icons Creating Icons at Runtime Metafiles Creating and Playing a Metafile Metafiles in a Disk File Bitmap, Icon, and Metafile Function Descriptions Chapter 14—Printing and Text Output Printer Support Printer Information Text Characteristics Printing and Text Output Function Descriptions Chapter 15—Painting and Drawing Pens, Brushes, and Other Logical Tools Specifying an Area for Drawing Invalidation, Clipping, and the WM_PAINT Message Painting and Drawing Function Descriptions Chapter 16—Palettes and Color Matching Hardware Palettes Color Palettes in Windows The Logical Palette Image Color Matching Color Spaces Color Profiles Palettes and Color Matching Function Descriptions Chapter 17—I/O with Files Creating and Opening Files Reading and Writing Sharing Data with File Mapping File I/O Function Descriptions Chapter 18—The Clipboard Clipboard Formats Windows Management of Clipboard Data Delayed Rendering of Clipboard Data CF_OWNERDISPLAY Format Using Private Clipboard Formats Clipboard Viewers Clipboard Function Descriptions Chapter 19—The Registry The Registry Architecture Placing Data in the Registry The Windows Registry Structure Registry Function Descriptions Chapter 20—Initialization Files Initialization File Structure Accessing Initialization Files Mapping Private INI Files Initialization File Function Descriptions Chapter 21—System Information Process Environment Information Local Time and System Time Locale and Language Support System Information Function Descriptions Chapter 22—String Manipulation and Character Sets Windows Character Set Translations Locales String Manipulation and Character Set Function Descriptions Chapter 23—Atoms Working with Atom Tables Using Global Atoms for Data Exchange Integer Atoms Atom Function Descriptions Chapter 24—Timers Using Timers Windows Time Performance Monitor Counters Timer Function Descriptions Chapter 25—Processes, Threads, and Fibers Creating Processes and Threads Fibers Synchronization Objects Protecting Nonreentrant Code of a Process Process, Thread, and Fiber Function Descriptions Chapter 26—Error and Exception Processing Writing Exception Handlers and Filters Win32 API for Exception Handling Error and Exception Processing Function Descriptions Chapter 27—Multiple-Document Interface (MDI) Creating an MDI Application The MDI Frame Window The MDI Child Window Menus in MDI Applications MDI Function and Message Descriptions Chapter 28—Interfacing with Help Files Providing User Access to the Help File Providing Context-Sensitive Help Using Training Card Help Help Files Function and Message Descriptions Chapter 29—File Decompression and Installation File Installation Overview Installing the Proper Version The Version Resource File Decompression File Decompression and Installation Function Descriptions Chapter 30—Dynamic Link Libraries Loadtime Dynamic Linking Runtime Dynamic Linking Creating Dynamic Link Libraries Accessing Data Within a DLL Using the DLL Notification Entry Point Dynamic Link Libraries Function Descriptions Index Products | Contact Us | About Us | Privacy | Ad Info | Home Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. To access the contents, click the chapter and section titles. Windows NT Win32 API SuperBible (Publisher: Macmillan Computer Publishing) Author(s): Richard Simon ISBN: 1571690891 Publication Date: 03/01/98 Brief Full Advanced Search this book: Search Search Tips Table of Contents Introduction The purpose of this book is to save programmers time in developing applications for Windows NT 4 and Windows 95. New standards presented in Windows NT 4, Windows 95, and the Win32 API have changed the way we develop applications. In some respects, this has simplified Windows development; however, the new APIs are complicated and not equally supported across all platforms. The main focus of this book is to provide a complete reference for the Win32 APIs that are supported in both Microsoft Windows NT 4 and Windows 95, although many new APIs that are only implemented in Windows NT 4 are documented. The compatibility of each API is shown to provide you with the information needed to make your applications compatible on both operating systems. This book focuses on the Win32 APIs supported in both operating systems, not the entire Win32 API, because most applications do not require the Windows NT–specific APIs. If you are like most Windows programmers trying to convert to the Win32 API, you have been overwhelmed by a mass of documentation that has little organization and very few examples. Trying to figure out how a function is supposed to work and what it really does quickly becomes an hour-long task. This book contains complete descriptions of each function, detailed parameter descriptions, and examples for each function that are concise and show the functionality. The same developer-friendly API Bible format is maintained in this book. Each chapter covers a group of related functions; for example, Chapter 3, Creating Windows, covers the functions required to create a window. Each chapter starts out with a short overview of the functions covered in the chapter, along with some common background that each function shares. This is followed by a function summary for the chapter and the detailed descriptions of the functions, with examples. The examples in this book are simple, yet complete, and show all appropriate variable declarations and usage of the function, along with any required supporting functions. The examples are not intended to be tutorials, but to demonstrate one function or at most a few functions in a simple working program. In the interest of keeping the examples short and concise, shortcuts are taken that would not be appropriate in a normal application. This was done to help eliminate the confusion between what is necessary to use the function in the example and the support code that is part of a normal Windows application. This book was completed using the released copy of Windows NT 4 and Windows 95. Every attempt was made to make sure the references are complete and accurate. The Microsoft Visual C++ 4.2 compiler was used for the examples that are included on the CD-ROM. The number of APIs that an average Windows application uses has exploded. This book covers the core API for Windows development. The other API Bible books in this series—Common Controls & Messages and Multimedia & ODBC—which are currently on the market, cover other support APIs such as the common controls, ODBC, and the multimedia APIs. Common Controls & Messages also contains a complete reference to all messages and macros, which is too large to include in this book. I hope you enjoy this book, and welcome to the world of Win32! Richard J. Simon Table of Contents Products | Contact Us | About Us | Privacy | Ad Info | Home Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement.
Description: