The active window also has control over the pointer. If the active window changes the image for the pointer using the functions setpointer() or clearpointer(), the pointer image will change: void SetPointer( struct Window *window, UWORD *pointer, long height, long width, long xOffset, long yOffset ); void ClearPointer( struct Window *window ); setpointer() sets up the window with a sprite definition for a custom pointer. If the window is active, the change takes place immediately. The pointer will not change if an inactive window calls SetPointer(). In this way, each window may have its own custom pointer that is displayed only when the window is active. clearpointer() clears the custom pointer from the window and restores it to the default Intuition pointer, which is set by the user. Setting a pointer for a window is discussed further in the chapter "intuition mouse and keyboard".