<<<
Boolean IsMenuVisible(void)
 {
 MenuBarPtr activeMenu;
 activeMenu = MenuGetActiveMenu();
 if (activeMenu)
  return (activeMenu->attr.visible);
 return false;
 }
>>>

Can folks stop propagting this?  It is a too specific answer to the general
question of "when is it safe to draw to window?"  It misses every other case
when there is a window covering the window you want to draw to.  The right
solution is to track when windows come and go over the window you want to draw
to.  You can do this easily by tracking winEnterEvents and winExitEvents.  For
code you can copy and paste into your app, look at Reptoids, which is available
in the SDK and in various places on the web.  If you still can't find it, email
me for a copy, and mention whether you want Mac or Windows line endings.

A special thanks to Steve for being to only person to mention the right answer!


-Roger


Reply via email to