🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #194

Re: SetFocus API

#194
From: Nick
Date: Sun, 25 Apr 2004 09:31
15 lines
1593 bytes
nrooster561@aol.com (Nick) wrote in message news:<6fda804f.0404211157.7856eec3@posting.google.com>...
> Let me explain what I am doing. I am attempting to setfocus to an
> application that is in another thread. I have attached my apps thread
> to this other thread and now want to use the Windows API setfocus(HWND
> hWnd).
> 
> It appears that Dephi SetFocus does not reqire an argument, however,
> the Windows API SetFocus(HWND hWnd) does. When attempting to use the
> API, an error message stating there are to many parameters ocurrs. It
> is looking at Delphi Setfocus. How do I get the Windows API
> SetFocus(HWND hWnd) to be recognized???
> 
> Thanks

Dumb me. The solution was simple. Namespace it: Windows.Setfocus(HWND hWnd).
Technical Details
Message-ID: <6fda804f.0404250131.8d898f9@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <6fda804f.0404211157.7856eec3@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,cf1327d3e7f5b9b3
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-04-25 02:31:44 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: nrooster561@aol.com (Nick)
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: SetFocus API
Date: 25 Apr 2004 02:31:44 -0700
Organization: http://groups.google.com
Lines: 15
Message-ID: <6fda804f.0404250131.8d898f9@posting.google.com>
References: <6fda804f.0404211157.7856eec3@posting.google.com>
NNTP-Posting-Host: 152.163.252.163
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1082885504 9522 127.0.0.1 (25 Apr 2004 09:31:44 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 25 Apr 2004 09:31:44 +0000 (UTC)