VB4HT: Table of Contents
 




Front Material

          Foreward................................................xiii
          Introduction..............................................xv    Code (409K)

Chapter 1: Class Fundamentals

          Introduction...............................................1
    1.1   Set Up the Worldšs Most Simple Class.......................6
    1.2   Add a Private Property to My Simple Class..................8
    1.3   Add a Private Method to My Simple Class...................11
    1.4   Add More Properties to My Simple Class....................13
    1.5   Output to a PictureBox from My Simple Class...............17
    1.6   Make a Flexible Class-Based Sprite Object.................22

Chapter 2: Forms

          Introduction..............................................43
    2.1   Start an Application with a Splash Screen.................49
    2.2   Include Rollup Tools in My Application....................57
    2.3   Allow Dragging of a Captionless Form......................71    Code (3K)
    2.4   Make a Floating Toolbar with a Mini-Title Bar.............77    Code (6K)
    2.5   Paint an Interesting Background on an MDI Parent Form.....91    Code (23K)
    2.6   Save and Restore Window Positions........................110
    2.7   Position an Icon at a Given Location.....................117    Code (6K)
    2.8   Create an Animated Cursor................................127    Code (9K)
    2.9   Automatically Resize Controls............................132
    2.10  Pass Variables to and Return Variables from a Form.......145    Code (3K)

Chapter 3: Controls

          Introduction.............................................153
    3.1   Drag, Drop, and Insert Items into a List Box.............159
    3.2   Make a More Flexible PictureBox..........................166
    3.3   Indicate Focus Using 3D Effects..........................179    Code (3K)
    3.4   Add the 3D Effects Microsoft Forgot......................185    Code (4K)
    3.5   Support All the Edit Functions for Text Boxes............214    Code (3K)
    3.6   Create a More Powerful ComboBox..........................220
    3.7   Add a Horizontal Scroll Bar to a List Box................234
    3.8   Make a Splitter Bar between Two Text Windows.............245    Code (4K)
    3.9   Clear a Multiselect List Box in One Cal..................252
    3.10  Build My Own Toolbar with PictureBoxes...................256
    3.11  Use LostFocus Correctly for Data Validation..............294    Code (15K)
    3.12  Create a Multiselect Drag-and-Drop File Dialog...........316
    3.13  Use Long Values with Scroll Bars.........................333    Code (9K)
    3.14  Guarantee Fixed-Width Font Availability..................350    Code (9K)

Chapter 4: Sounds

          Introduction.............................................367
    4.1   Read RIFF Files..........................................372    Code (36K)
    4.2   Write RIFF Files.........................................383    Code (35K)
    4.3   Use Multimedia Memory Files..............................391    Code (36K)
    4.4   Use the MCI Command String Interface.....................402    Code (37K)
    4.5   Play Multiple Wavefiles Simultaneously...................415    Code (76K)
    4.6   Display a Wavefile.......................................433    Code (61K)
    4.7   Play Wavefiles Using Low-Level API Calls.................454    Code (48K)
    4.8   Change a Wavefilešs Volume...............................463    Code (66K)
    4.9   Merge Two Wavefiles......................................473    Code (73K)
    4.10  Make a Drum Machine......................................485    Code (540K)

Chapter 5: Graphics

          Introduction.............................................509
    5.1   Cycle PictureBox Colors..................................515    Code (30K)
    5.2   Read .DIB Files..........................................524    Code (10K)
    5.3   Fill Backgrounds with a Smooth Color Transition..........536    Code (15K)
    5.4   Fade Text Titles In and Out..............................552    Code (13K)
    5.5   Use Palette Animation....................................559    Code (200K)
    5.6   Fade between Pictures....................................572    Code (287K)
    5.7   Create Sprites Using WinG................................588    Code (217K)
    5.8   Create a Scrolling Background Using WinG.................614    Code (175K)
    5.9   Create a Game............................................627    Code (479K)

Chapter 6: Object Linking and Embedding

          Introduction.............................................643
    6.1   Browse Program Manager Groups and Items..................647
    6.2   Perform Background Operations with an 
          In-Process OLE Server....................................668
    6.3   Build an OLE Object Viewer...............................678
    6.4   Assemble Documents with Word for Windows 6.0.............684
    6.5   Transfer Data and Send Notifications between 
          VB Applications, Using an  Automation Server.............716

Chapter 7: System Services

          Introduction.............................................729
    7.1   Submit a File to the Print Spooler.......................734    Code (8K)
    7.2   Manipulate .INI Files....................................744
    7.3   Get an hWnd from a Process Handle (hProcess).............778
    7.4   Get an hWnd from a Partial Title.........................786
    7.5   Determine Whether a Project is Compiled..................793    Code (3K)
    7.6   Determine a Drivešs Type.................................798
    7.7   Check for a Filešs Existence.............................802
    7.8   Set a Filešs Date and Time...............................806
    7.9   View Icons in Executable Files...........................816
    7.10  Detect Which OS is Running...............................829

Chapter 8: Database

          Introduction.............................................833
    8.1   Create a Quicken-Style ComboBox for Data Lookup..........838
    8.2   Create a Selection List from a Lookup Table..............849
    8.3   Display Tables and Fields in an Access Database..........859
    8.4   Build a Better Data Control..............................866
    8.5   Display Values from Any Access Database..................878
    8.6   Create a Database from a Text File Description...........888
    8.7   Import Text Records into a Database......................918
    8.8   Find Incorrectly Spelled Names in a Database.............933

Chapter 9: Tips and Tricks

          Introduction.............................................949
    9.1   Return an Ordinal Number for Any Number..................954
    9.2   Return an Anniversary Description for Any Set of Dates...959
    9.3   Set the Desktop Wallpaper................................970
    9.4   Generate an Interval Series of Dates.....................975
    9.5   Use Dir$ to Recursively Search a Directory Tree..........985    Code (10K)
    9.6   Use Notepad as a Debugging Window.......................1011    Code (35K)
    9.7   Parse a String into Its Elements........................1039    Code (4K)
    9.8   Manipulate Bits, Bytes, Words, and Dwords...............1046    Code (9K)

Index

          Index...................................................1065

Main ˇ Authors ˇ Foreward ˇ Contents ˇ Introduction ˇ Index ˇ ReadMe ˇ Errata