<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
in the forms unit<br>
<br>
function AllocateHWnd(Method: TWndMethod): HWND; deprecated;&nbsp; { moved
to Classes.pas }<br>
{$EXTERNALSYM AllocateHWnd}<br>
procedure DeallocateHWnd(Wnd: HWND);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deprecated;&nbsp; { moved
to Classes.pas }<br>
<br>
<br>
read the help will sort you out just fine<br>
<br>
Ross Levis wrote:
<blockquote cite="mid014401c57ae7$48177ca0$5100a8c0@levis4" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.2668" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">I'm writing a component which
communicates with a 3rd party DLL using WM_USER messages.&nbsp; After
loading the DLL, I&nbsp;need to tell&nbsp;the DLL the handle to send user
messages back to, so my unit can intercept them, but I don't know where
to get a handle from.&nbsp; I know how to do it in the mainform of a program
but not in a separate unit.&nbsp; The messages sent to the mainform do not
appear to reach my unit.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">What do I need to do to make this
happen?</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2"><font color="#000000">Thanks,</font></font></div>
  <div><font face="Arial" size="2"><font color="#000000">Ross.</font></font></div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Delphi mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</a>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
  </pre>
</blockquote>
</body>
</html>