[comp.os.os2] PM Window Output Question

jerry@polygen.uucp (Jerry Shekhel) (02/20/90)

Hello.  I'm writing a program which displays an analog clock in a PM
window, and am having ridiculous difficulties.  Here's the problem:

I'm using the WM_TIMER message to update the hands of the clock.
Now, if another window pops up in front of the clock window, like
its own system menu, or some other program's dialog box, things get
screwed up:  such pop-ups save the underlying contents of the screen,
and when they are destroyed, they just restore those contents, instead
of broadcasting WM_PAINT.  The problem is that the contents of the clock
window may change before the pop-up is destroyed, and the restored image
is then invalid!

Anyone know how to get around this?  The free clock program in MS Windows
does it, so I think there's got to be a way to do it in PM.  Or maybe
this is the reason there's no clock with PM?

Please help if you can.  I've already wasted too much time on this!
---
+--------------------+-----------------------+-------------------------------+
|                    |  Polygen Corporation  |           UUCP:               |
|  Jerry J. Shekhel  |   Waltham, MA 02254   |  {princeton, mit-eddie,       |
|                    |    (617) 890-2888     |  bu, sunne}!polygen!jerry     |
+--------------------+-----------------------+-------------------------------+