home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4290 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.1 KB

  1. Path: sparky!uunet!psinntp!ncrlnk!ncratl!pgleason
  2. From: pgleason@ncratl.AtlantaGA.NCR.COM (Pat Gleason)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Threads & PM
  5. Message-ID: <8301@ncratl.AtlantaGA.NCR.COM>
  6. Date: 18 Aug 92 00:31:45 GMT
  7. References: <1992Aug17.094307.24775@wsl.ie>
  8. Organization: NCR Engineering and Manufacturing Atlanta -- Atlanta, GA
  9. Lines: 17
  10.  
  11. In <1992Aug17.094307.24775@wsl.ie> jja@wsl.ie (John J. Allen) writes:
  12.  
  13. >I'm having a problem with a PM app that I can't figure out.
  14.  
  15. >I'm using a thread to collect Disk Usage Info and appending it to a
  16. >listbox in the dialog box but all the calls fail. If I call the
  17. >function normally it all works fine.
  18.  
  19. >So the question is how can you update a dialog box from a thread.
  20.  
  21. Unless the thread has a message queue (which you did not state),
  22. the thread must use WinPostMsg() and NOT WinSendMsg(). I hope
  23. this helps.
  24. -- 
  25. ============================================================================
  26. Pat Gleason                       | "Cubs fans are 90 percent scar tissue"
  27. pgleason@ncratl.atlantaga.ncr.com |  George Will
  28.