Cursors

A cursor is a small bit image that reflects the position of the mouse, or other pointing device, as it tracks across the screen. Windows CE-based platforms implement cursors in different ways.

On many Windows CE-based platforms, users interact with applications by tapping the stylus on the screen. Because there is no mouse, there is no need for a cursor to indicate the current mouse position. However, even if your target platform does not support a pointing device, every application should display the wait cursor, which is a spinning hourglass, whenever it executes a command that renders the current window or the system unresponsive to user input.

Target platforms that support mouse cursors support cursors the same way that Windows-based desktop platforms do, except that they do not support color cursors.

Some Windows CE-based platforms only support the wait cursor and the SetCursor and LoadCursor functions. On these platforms, you can use the following code example to load the wait cursor.

SetCursor(LoadCursor(NULL, IDC_WAIT));