Pointer position messages to a window may be turned on and off by simply setting or clearing the wflg_reportmouse flag bit in window->flags, in an atomic way, as explained for the wa_rmbtrap tag in the "window attributes" section above. Using this direct method of setting the flag avoids the historic confusion on the ordering of the arguments of the reportmouse() function call. Mouse reporting may be turned on even if mouse movements were not activated when the window was opened. The proper IDCMP flags must be set for the window to receive the messages. See the chapter "intuition mouse and keyboard" for more details on enabling mouse reporting in an application.