[DUG] By giving a hwnd handle

Leigh Wanstead leighw at softtech.co.nz
Fri Aug 4 09:54:43 NZST 2006


Hi Max,

It does not work.

FindControl return nil. I guess that shell application which contains handle
can't be accessed by in process com server.

Regards
Leigh

-----Original Message-----
From: Max Nilson [mailto:max at accredo.co.nz]
Sent: Thursday, 3 August 2006 7:16 p.m.
To: leighw at softtech.co.nz; 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] By giving a hwnd handle


Leigh Wanstead asked:

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

Use FindControl as defined in Controls.pas defined as:

function FindControl(Handle: HWnd): TWinControl;

Cheers, Max.






More information about the Delphi mailing list