Intellimouse panning (improved Auto-Panning Windows) | CodeGuru

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 […]

Written By
CodeGuru Staff
CodeGuru Staff
Aug 6, 1998
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

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.

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.