If the window uses GadTools menus and GadTools gadgets, then use the gt_getimsg() and gt_replyimsg() functions described below (or gt_filterimsg() and gt_postfilterimsg(), if applicable). however, if the window has GadTools menus, but no GadTools gadgets, it is acceptable to use getmsg() and replymsg() in the usual manner. Additionally, no context need be created with createcontext() if no GadTools gadgets are used. For more about these functions, see the section on "other gadtools functions" later in this chapter.