🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2
Article #1262

PM Window Output Question

#1262
From: Jerry Shekhel
Date: Tue, 20 Feb 1990 15:12
23 lines
1704 bytes
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     |
+--------------------+-----------------------+-------------------------------+
Technical Details
Message-ID: <675@polygen.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!mintaka!mit-eddie!bu.edu!polygen!jerry

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!mintaka!mit-eddie!bu.edu!polygen!jerry
From: jerry@polygen.uucp (Jerry Shekhel)
Newsgroups: comp.os.os2
Subject: PM Window Output Question
Message-ID: <675@polygen.UUCP>
Date: 20 Feb 90 15:12:07 GMT
Reply-To: jerry@polygen.UUCP (Jerry Shekhel)
Organization: Polygen Corporation, Waltham, MA
Lines: 23