• Microsoft Developer Network
  • ▶Highlights
  • ▶Technical Articles
  • ▶Sample Code
  • ▶Resource and Strategy
  • ▶Knowledge Base and Bug Lists
  • ▶Books and Magazine Articles
  • ▼Product Documentation
    • ▶C/C++ 7.0
    • ▶Macro Assembler 6.0
    • ▶Multimedia Development Kit
    • ▶OLE 1.0 Programmer's Reference
    • ▶Win32 SDK for Windows NT
    • ▶Windows 3.1 DDK
    • ▼Windows 3.1 SDK
      • ▶Getting Started
      • ▼Guide to Programming
        • Title Page
        • ▶Introduction
        • ▶PART 1 Programming in the Windows Environment
        • ▼PART 2 Programming Windows Applications
          • PART 2 Programming Windows Applications
          • ▼Chapter 3 Output to a Window
            • Chapter 3 Output to a Window
            • ▼3.1 Using a Device Context
              • 3.1 Using a Device Context
              • 3.1.1 Using the GetDC Function
              • 3.1.2 Processing a WM_PAINT Message
              • 3.1.3 Invalidating the Client Area
              • 3.1.4 Preparing a Device Context
              • 3.1.5 Coordinate System
              • 3.2 Creating, Selecting, and Deleting Drawing Tools
              • 3.3 Drawing and Writing
            • ▶3.4 Sample Application: Output
          • ▶Chapter 4 Keyboard and Mouse Input
          • ▶Chapter 5 Icons
          • ▶Chapter 6 Cursors
          • ▶Chapter 7 Menus
          • ▶Chapter 8 Controls
          • ▶Chapter 9 Dialog Boxes
          • ▶Chapter 10 File Input and Output
          • ▶Chapter 11 Bitmaps
          • ▶Chapter 12 Printing
          • ▶Chapter 13 Clipboard
        • ▶PART 3 Advanced Programming Topics
      • ▶Programming Tools
      • ▶Programmer's Reference Volume 1: Overview
      • ▶Programmer's Reference Volume 2: Functions
      • ▶Programmer's Reference Volume 3: Messages, Structures, and Macros
      • ▶Programmer's Reference Volume 4: Resources
    • ▶QuickC for Windows
  • ▶Unsupported Tools & Utilities