How to Determine the Shape of the Mouse CursorID: Q106661 2.50 2.50a 2.50b 3.00 WINDOWS kbui The information in this article applies to:
SUMMARYIn FoxPro for Windows, the cursor (mouse pointer) can change shape depending on where it is located on the screen. There isn?t a function in FoxPro that tells you the current shape of the cursor. The code example below shows one method of determining the cursor's shape.
MORE INFORMATIONSeveral functions in the Microsoft Windows Software Development Kit (SDK) can be used to control and get information about the current Windows cursor. The two that this program (IBEAM.PRG) uses are LoadCursor() and GetCursor(). The REGFN() and CALLFN() routines within FOXTOOLS.FLL are used to call the SDK cursor functions.
To run IBEAM.PRG, type the following line in the Command window. When you
press F4, IBEAM.PRG will be called and will tell you whether the cursor is
in the I-beam shape or not, depending on the position of the mouse.
REFERENCESMicrosoft Windows SDK "Programmer's Reference, Volume 2: Functions" FOXTOOLS.WRI in the FoxPro version 2.5 for Windows FOXPROW\GOODIES\FOXTOOLS directory Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.50a 2.50b arrow foxtools foxtools.fll KBCategory: kbui KBSubcategory: FxprgFoxtools
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |