Article View: comp.os.os2.programmer
Article #2728Dialogs + Threads = Problems. Help!
From: U37127
Date: Wed, 30 Dec 1992 21:37
Date: Wed, 30 Dec 1992 21:37
27 lines
1649 bytes
1649 bytes
Hello all, I have been having some weird PM problems that I was hoping someone could shed some light on. Basically the problem is that if I start a thread from a dialog, and then from within the thread try to send messages to the dialog items, or set DlgItemText, the calls fail. I have not omitted the all important step of getting a PM anchor block handle for each thread. The two specific cases I have noticed are, WinSendMsg fails, while WinPostMsg succeeds; WinSetDlgItemtext fails, as does WinSetWindowText. All my dialogs are loaded and started with WinDlgBox, with the owner handle set to NULL, so as to make them non-modal. The msg processing calls in main are the standard wingetmsg and windispatchmsg. I havent been able to find any special requirements in the docs for interaction of threads with dialog items, other than the general requirement of an anchor block handle. If you know of any special requirements or know where I might be screwing up, please E-Mail me. Thank you, Satish Movva Small Systems Group Bitnet: U37127@UICVM Academic Computer Center Internet: u37127@uicvm.uic.edu University of Illinois at Chicago satish@satish.cc.uic.edu
Technical Details
Message-ID:
<92365.153701U37127@uicvm.uic.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!uicvm.uic.edu!u37127Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!uicvm.uic.edu!u37127 Organization: University of Illinois at Chicago Date: Wednesday, 30 Dec 1992 15:37:01 CST From: <U37127@uicvm.uic.edu> Message-ID: <92365.153701U37127@uicvm.uic.edu> Newsgroups: comp.os.os2.programmer Subject: Dialogs + Threads = Problems. Help! Lines: 27