XPIsWidgetVisible

WIDGET_API int        XPIsWidgetVisible(
                         XPWidgetID           inWidget);    

This returns 1 if a widget is visible, 0 if it is not. Note that this routine takes into consideration whether a parent is invisible. Use this routine to tell if the user can see the widget.