🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.nativeapi
2 messages
2 total messages Started by Nick Wed, 21 Apr 2004 19:57
SetFocus API
#193
Author: Nick
Date: Wed, 21 Apr 2004 19:57
12 lines
1325 bytes
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
Re: SetFocus API
#194
Author: 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).
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads