How to Change the Mouse Pointer to an Hourglass

Last reviewed: April 29, 1996
Article ID: Q97064
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SUMMARY

Changing the mouse pointer to an hourglass requires the use of Windows application programming interface (API) calls. You cannot control the pointer's shape using FoxPro commands. The HOURGLAS.PRG program (located in the GOODIES\FOXTOOLS directory) contains an example of how to use Windows API calls for this purpose. However, it is important to note that if the mouse is moved, FoxPro's event handler takes over and the pointer reverts to the default shape.

MORE INFORMATION

The HOURGLAS.PRG example does not permanently change the pointer's shape. Permanently changing the pointer's shape requires the use of other Windows API calls or third-party applications. For more information using Windows API calls to permanently change the pointer's shape, refer to the Microsoft Windows Software Development Kit (SDK).

REFERENCES

"Microsoft Windows Software Development Kit Programmer's Reference, Volume 2: Functions"


Additional reference words: FoxWin 2.50 2.50a cursor hour glass
KBCategory: kbinterop kbtool kbui kbprg kbcode
KBSubcategory: FxinteropGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.