🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1821

PM Walker problem and solution

#1821
From: David Charlap
Date: Tue, 10 Nov 1992 19:33
21 lines
1530 bytes
I recently downloaded the PMWALKER.ZOO program.  This is a simple
program which produces an animated icon for itself by creating a timer
and changing the application icon with each time tick.

When I ran it under OS/2 2.0, the program would not do anything.  It
would just run invisibly, requiring KILLEM.EXE to stop it.  I
discovered the solution:  The program didn't make any call to
WinSetWindowPos before entering the window loop.  Even if it runs
minimized, I found that an application that doesn't set a position
with the SWP_SHOW command doesn't display anything.

After patching a few constants (replacing some NULLs with NULLHANDLEs
and changing a USHORT to ULONG, and replacing ClientWndProc to _ClientWndProc
in the DEF file), it compiled and ran fine with GCC/2 2.1.

-- 
  |)  David Charlap          | .signature confiscated by FBI due to
 /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
((|,)                        | source of these .signature virusses
 ~|~
Technical Details
Message-ID: <1992Nov10.193329.18511@njitgw.njit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!mrccrc!doc.ic.ac.uk!agate!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!mrccrc!doc.ic.ac.uk!agate!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: PM Walker problem and solution
Message-ID: <1992Nov10.193329.18511@njitgw.njit.edu>
Date: 10 Nov 92 19:33:29 GMT
Sender: news@njit.edu
Organization: New Jersey Institute of Technology, Newark, N.J.
Lines: 21
Nntp-Posting-Host: hertz.njit.edu