home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6320 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.5 KB

  1. Path: 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
  2. From: dic5340@hertz.njit.edu (David Charlap)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: PM Walker problem and solution
  5. Message-ID: <1992Nov10.193329.18511@njitgw.njit.edu>
  6. Date: 10 Nov 92 19:33:29 GMT
  7. Sender: news@njit.edu
  8. Organization: New Jersey Institute of Technology, Newark, N.J.
  9. Lines: 21
  10. Nntp-Posting-Host: hertz.njit.edu
  11.  
  12.  
  13. I recently downloaded the PMWALKER.ZOO program.  This is a simple
  14. program which produces an animated icon for itself by creating a timer
  15. and changing the application icon with each time tick.
  16.  
  17. When I ran it under OS/2 2.0, the program would not do anything.  It
  18. would just run invisibly, requiring KILLEM.EXE to stop it.  I
  19. discovered the solution:  The program didn't make any call to
  20. WinSetWindowPos before entering the window loop.  Even if it runs
  21. minimized, I found that an application that doesn't set a position
  22. with the SWP_SHOW command doesn't display anything.
  23.  
  24. After patching a few constants (replacing some NULLs with NULLHANDLEs
  25. and changing a USHORT to ULONG, and replacing ClientWndProc to _ClientWndProc
  26. in the DEF file), it compiled and ran fine with GCC/2 2.1.
  27.  
  28. -- 
  29.   |)  David Charlap          | .signature confiscated by FBI due to
  30.  /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
  31. ((|,)                        | source of these .signature virusses
  32.  ~|~
  33.