Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API Library

Status
Not open for further replies.

ChuckG

MIS
Feb 28, 2001
211
US
Hey guys,

One of our programers here is wanting to use the WFindTitle API Library routine in VFP6.

But he hasn't been able to find a copy of the API Library on Microsoft's site. Anyone know where he could get a copy of this?

Thanks
ChuckG
 
Hi Chuck,

API Library???

The API's are in dll files such as win32.dll and are already on the computer. AFAIK

Regards,

Mike
 

One of our programers here is wanting to use the WFindTitle API Library routine in VFP6.

What is trying to do? Does he mean "wndTitle"?


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Hi Chuck,

According to the sample WFINDTIT is the library. I can't find it on my computer or at M$. Google was not productive either.

Regards,

Mike
 
set library to ( home()+"fotxtools.fll" )

Is this what you are looking for?
 
Hey, Chuck:

What is your programmer trying to do with the WFINDTIT function call?

The purpose of the function _WFINDTIT is to call from a C-created FLL file into the VFP API to get the VFP window handle (WHANDLE) for a VFP window. (the routine can then use that handle to manipulate the window)

If he's writing in VFP, then there is no need for the WFINDTIT api function... such vfp commands as ZOOM WINDOW "win name", HIDE WINDOW "win name", etc, all use WFINDTIT to get the window matching "win name" before doing something to it.

If, however, he really wants the HWND of a Windows window, then he wants the "FindWindow" api call. Here's a vfp wrapper to make using that function easier:
Code:
************************************************************************
*  FindWindow( cWindowName )
*
*  Auth: William GC Steinford
*  Date: 7/16/98
*  Purp: Ask windows if a particular window name exists
*        (Case Insensitive)
*
************************************************************************
FUNCTION FindWindow
LPARAMETERS cWinName
DECLARE INTEGER FindWindow in win32api as apiFindWindow INTEGER nClass, STRING cName
Return apiFindWindow( 0, cWinName )
ENDFUNC


- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Bill,

That piece of code got him going.
Basicly what he was doing was creating a form that has buttons representing all the various programs this user could run. (System being locked down so this is all that runs) He wanted a way to be able to check and see if one of these app's had already been started (and minimized), so instead of starting a second copy, he just focused on it.

ChuckG
 
I'm glad to be of help!

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top