[DUG] By giving a hwnd handle

Sabu M Hariharan Sabu.Hariharan at igate.com
Thu Aug 3 17:21:09 NZST 2006


 

Hi,

 

I think using a pointer will be a better option.

 

Regards,

Sabu

 

________________________________

From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Leigh Wanstead
Sent: Thursday, August 03, 2006 10:34 AM
To: delphi at ns3.123.co.nz
Subject: [DUG] By giving a hwnd handle

 

Hello everyone,

 

By giving a hwnd handle, how to get TWinControl back?

 

varMemo: TMemo;

 

varMemo := SomeSortOfWay(Memo1.Handle);

 

The reason for that is the control needs to be passed around com
interface, HWND is the just a pointer(Integer value), so it is safe to
pass across com interface boundary.

 

TIA

 

Regards

Leigh

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailadmin at igate.com 
and delete this EMAIL including any attachments
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060803/a85f64b3/attachment.html


More information about the Delphi mailing list