Subject: Re: check Menu visibility From: "Michael A. Waldron" <[EMAIL PROTECTED]> Date: Wed, 02 Jul 2003 13:25:21 -0500 X-Message-Number: 31
I had a similar problem recently with a menu overlapping a part of my screen and being drawn over. This is the solution I came up with, but it has a problem I will note below.
if (FrmGetWindowHandle(frmP) == WinGetActiveWindow()) { draw }
It works fine in that it stops me from drawing when I am not active, aka when a menu is open, or the command bar. The problem is that when I exit a form called with FrmPopupForm that did not have save behind enabled, I get a FrmUpdateEvent posted to my main form's event handler before the system has switched the window back. My code catches that I'm not the current window and doesn't redraw.
I believe you can treat a FrmUpdateEvent as gospel. The OS is explicitly telling you to draw, so draw!
Roger Stringer Marietta Systems, Inc. (www.RF-TP.com)
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
