Try nil, instead of ''

FindWindow(nil, 'Name of the Window Title')
or
FindWindow('TMyForm', nil)


I think that is the correct way around!!!

Chris


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Patrick Dunford
Sent: Thursday, 20 January 2000 20:53
To: Multiple recipients of list delphi
Subject: [DUG]: FindWindow



Has anyone ever managed to get FindWindow to match with an empty string in
the lpWindowName parameter?

This is supposed to ignore that parameter (or match all window titles) but
in practice my searches for a class of window that actually exists always
fail if the lpWindowName is an empty string.

============================================
Patrick Dunford, Christchurch, NZ
EnzedRailWeb Sites
http://patrick.dunford.com/enzedrailweb/

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to