For transient widgets such as dialogue boxes, one usually wants to remove them from the screen after interaction has completed. The EZ widget library provides one routine that does a non-destructive removal of a mapped widget.
void EZ_HideWidget(EZ_Widget *widget);