Skip to main content

This article provides an external C subroutine that you can use to set the mouse cursor.

Problem:

The mouse “wait” cursor is useful for indicating to the user that a process is busy. However, there is no built-in method to change the mouse cursor to the “wait” icon.

Resolution:

The attached zip archive contains a Dynamic-link library (rmcursor.dll) that implements two C subroutines that will allow you to invoke the mouse “wait” cursor and return the mouse back to the original, arrow cursor.

Below is the syntax for invoking the two subroutines.

To set the mouse cursor to “wait”:

CALL "RM_SetCursor_Wait"

To set the mouse cursor to “arrow”:

CALL "RM_SetCursor_Arrow"

Also included in the zip archive is a sample program (testrmcursor) that demonstrates the use of the mouse cursor subroutines.

Old KB# 14608