Hi,

 

I think using a pointer will be a better option.

 

Regards,

Sabu

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leigh Wanstead
Sent: Thursday, August 03, 2006 10:34 AM
To: [email protected]
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 [EMAIL PROTECTED] 
and delete this EMAIL including any attachments
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to