Intellimouse panning (improved Auto-Panning Windows)

This article improves on the code submitted by Umut Alev, Auto-Panning Windows.

Ever since I saw the use of this Intellimouse control in the Infoviewer of DevStudio and later in Microsofts Internet Explorer, I've wanted an improved version that didn't strain the eyes and had much finer increments than 1-pixel, 2-pixels etc. Eudora Pro can use Microsofts viewer and since I read a number of newsletters, the scrolling is either too slow or too fast. I also wanted the panning to be simultanoeusly possible both vertically and horizontally.

Improvements made

  • Scroll simultaneously in horizontal and vertical directions. I added code to Umuts class to handle scrolling both vertically and horizontally at the same time (you can still have it the old way, it's a BOOL switch). The cursor does not change in this case, it remains the pointer in all four directions.
  • Scroll with much finer resolution (much smoother) by time and pixel dependant scrolling.

Download source - 5KB

Download the two source files mfxWhlPan.h and mfxWhlPan.c in this ZIP file. You must download Umats demo project - 38KB or his source - 4.9KB and replace the two files.

Date Posted: 5/22/98
Posted by: Pat Laplante.



Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: May 6, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT While you likely have very good reasons for remaining on WinXP after end of support -- an estimated 20-30% of worldwide devices still are -- the bottom line is your security risk is now significant. In the absence of security patches, attackers will certainly turn their attention to this new opportunity. Join Lumension Vice President Paul Zimski in this one-hour webcast to discuss risk and, more importantly, 5 pragmatic risk mitigation techniques …

  • The latest release of SugarCRM's flagship product gives users new tools to build extraordinary customer relationships. Read an in-depth analysis of SugarCRM's enhanced ability to help companies execute their customer-facing initiatives from Ovum, a leading technology research firm.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds