If an application does not use menus at all, it may set the wflg_rmbtrap flag, which allows the program to trap right mouse button events for its own use. By setting the wflg_rmbtrap flag with the wa_flags tag when the window is opened, the program indicates that it does not want any menu operations at all for the window. Whenever the user presses the right button while this window is active, the program will receive right button events as normal idcmp_mousebuttons events.