<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Similar to what I needed help with a few days 
ago.&nbsp; I would like to set up a thread to handle messages posted from a DLL 
using PostMessage.&nbsp; I've created a thread object with an extra variable to 
store the handle from AllocateHWnd, and assigned this to the DLL's parent 
handle.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm not sure whether I need to provide an 
Thread.Execute procedure since I'm not executing anything.&nbsp; I currently 
don't have one and I've set FreeOnTerminate to False.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Messages are being received by the WndProc 
procedure defined in the thread object but I'm not so sure that&nbsp;messages 
are being processed as they arrive.&nbsp; I may be wrong but I'm wondering if 
the WndProc procedure&nbsp;is executing in the main thread.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Is what I have done sound right?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ross.</FONT></DIV></BODY></HTML>