Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Using Rectangles to Detect Mouse Position

IP.com Disclosure Number: IPCOM000109755D
Original Publication Date: 1992-Sep-01
Included in the Prior Art Database: 2005-Mar-24
Document File: 1 page(s) / 25K

Publishing Venue

IBM

Related People

Boeving, D: AUTHOR [+3]

Abstract

This article describes a simple and efficient method of detecting mouse position within a Presentation Manager* (PM) client window.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 100% of the total text.

Using Rectangles to Detect Mouse Position

       This article describes a simple and efficient method of
detecting mouse position within a Presentation Manager* (PM) client
window.

      Detecting the mouse position within a Presentation Manager
client window is difficult if the window has "mouse-sensitive" areas
which are not PM controls.  By dividing the client window into
rectangular areas, a PM program can efficiently detect the presence
of the mouse over text or graphic images.

      During the processing of the WM_CREATE message, the client
window area is divided into "mouse zones."  The borders of these
zones, in client coordinates, are stored in an array of RECTL
structures.  Whenever the mouse moves within the client window, the
WinPtInRect() function is called to determine if the mouse is within
one of the stored "mouse zones."  If so, the application then
processes the detected mouse position according to its function.
*  Trademark of IBM Corp.