
High-Performance Scroll Bars
(c) 1992 by Tom Swan. All rights reserved.

Note: You may use any of the files in the SCROLL.ZIP file to create
your own compiled programs, which you may distribute free of any
charge or royalty.

If you are using Turbo C++ for Windows 3.0, delete the supplied .PRJ
project files, and create new ones. You can load the projects into
Borland C++ for Windows 3.1, but you might have to reset my directory
paths. The SCROLL.PRJ project specifies files SCROLL.CPP and
SCROLL.DEF. The SCROLL2.PRJ project specifies SCROLL2.CPP and
SCROLL2.DEF. There are no resource scripts or other files required to
compile and run the demonstration programs.

SCROLL.CPP (Listing 1 in the article) is the slow scroll-bar
demonstration. Make changes to this file from Listings 3-8 as
described in the article. For reference (and in case you downloaded
these files and don't have PC TECHNIQUES), files LISTING3.TXT through
LISTING8.TXT contain these changes. (There are no LISTING1.TXT and
LISTING2.TXT files--these are SCROLL.CPP and SCROLL.DEF
respectively.)

SCROLL2.CPP (not listed in the article) is the end result--the final
program that you get by making all of the suggested changes. Compile
and run this program for a dramatic example of high-performance
scroll bars.

For convenience, SCROLL.EXE and SCROLL2.EXE are also provided ready
to run. I've tested the programs under Windows 3.1, but they should
run under version 3.0 as well.

For more information about the files, see my column "Shades of
Windows" appearing regularly in PC TECHNIQUES. Enjoy!

Tom Swan
Compuserve ID 73627,3241

Advertisement:  
--------------
My new book, "Mastering Borland C++ (3.1)" is now available from Sams
and from most book stores. The book includes complete ANSI C and C++
tutorials, plus chapters on BGI graphics, Turbo Vision, and Borland's
class library (in class and template forms). There's also a reference
to the Borland C++ standard function library, plus a chapter on
ObjectWindows programming, with Windows 3.1 TrueType and
common-dialog sample programs. A high-density disk is included with
the book. (A 3.5-inch replacement disk is available on request from
the publisher.) All listings, answers to exercises, function
reference examples, plus extra shareware and public domain programs
are supplied. Price: $39.95. Approx. 1500 pages.
