• 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 4 Keyboard and Mouse Input
            • Chapter 4 Keyboard and Mouse Input
            • ▶4.1 Windows Input Messages
            • ▼4.2 Sample Application: Input
              • 4.2 Sample Application: Input
              • 4.2.1 How the Input Application Displays Output
              • 4.2.2 Adding New Variables
              • 4.2.3 Setting the Window-Class Style
              • 4.2.4 Modifying the CreateWindow Function
              • 4.2.5 Setting the Text Rectangles
              • 4.2.6 Adding a WM_CREATE Case
              • 4.2.7 Modifying the WM_DESTROY Case
              • 4.2.8 Adding WM_KEYUP and WM_KEYDOWN Cases
              • 4.2.9 Adding a WM_CHAR Case
              • 4.2.10 Adding a WM_MOUSEMOVE Case
              • 4.2.11 Adding WM_LBUTTONUP and WM_LBUTTONDOWN Cases
              • 4.2.12 Adding a WM_LBUTTONDBLCLK Case
              • 4.2.13 Adding a WM_TIMER Case
              • 4.2.14 Adding WM_HSCROLL and WM_VSCROLL Cases
              • 4.2.15 Adding a WM_PAINT Case
              • 4.2.16 Compiling and Linking
              • 4.3 Related Topics
          • ▶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