🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Threads & PM

#878
From: Peter Forsberg
Date: Mon, 17 Aug 1992 12:17
26 lines
1485 bytes
In <1992Aug17.094307.24775@wsl.ie> John J. Allen writes:
>I'm having a problem with a PM app that I can't figure out.
>
>I'm using a thread to collect Disk Usage Info and appending it to a
>listbox in the dialog box but all the calls fail. If I call the
>function normally it all works fine.
>
>So the question is how can you update a dialog box from a thread.
>
>Thanks.
>

How do you append the info to the listbox ?  Do you use WinSendMsg or
WinPostMsg to send the LM_INSERTITEM message to the listbox ? (I assume
you do either that, or you send some WM_USER message to the dialog
box window - the same rule (below) applies in that case).
From a secondary thread without a PM input queue, you must use WinPostMsg.
WinSendMsg cannot be called from such a thread.

Hope this helps,

Peter
--
Peter Forsberg           E-mail:  peterf@vnet.ibm.com          (primary)
                                  d88-pfo@nada.kth.se        (alternate)
Disclaimer: This posting represents the poster's views, not those of IBM
Technical Details
Message-ID: <19920817.032743.575@almaden.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.com
References: <1992Aug17.094307.24775@wsl.ie>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!vnet.ibm.com
From: peterf@vnet.ibm.com (Peter Forsberg)
Message-ID: <19920817.032743.575@almaden.ibm.com>
Date: Mon, 17 Aug 92 12:17:12 SWE
Newsgroups: comp.os.os2.programmer
Subject: Re: Threads & PM
Reply-To: peterf@vnet.ibm.com
Organization: IBM Corporation
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
References: <1992Aug17.094307.24775@wsl.ie>
Lines: 26