Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wanna know Handle no. of the Window
Message
From
18/07/1998 09:26:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/07/1998 09:12:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00118950
Message ID:
00118955
Views:
17
>Hello,
>
>I want to know the Handle no. of the existing Window in VFP and also the another window running on.. ? and how to switch on to the another application window .. ?
>
>The reply will be appreciated ..
>
>Willing to get from George tasker..
>
>Regards
>Raj
Hope George will kick in too. Meanwhile my code
function findwindowclass
lparameters tcWintitle
DECLARE integer FindWindow in WIN32API string cNull, string cWinName
declare integer GetClassName in WIN32API integer hWnd, string @cClass, integer nMaxBuffer
hWnd = FindWindow(0,tcWintitle)
lpClassName = space(200)
nBufLen = GetClassName(hWnd,@lpClassName,200)
clear dlls
return substr(lpClassName,1,nBufLen)

function findwindowhandlefromclass
lparameter tcWinClass
DECLARE integer FindWindow in WIN32API string cNull, string cWinName
nHWND = FindWindow(tcWinClass,0)
clear dlls
return nHWND

function findwindowhandle
lparameters tcWintitle
DECLARE integer FindWindow in WIN32API string cNull, string cWinName
hWnd = FindWindow(0,tcWintitle)
clear dlls
return hWnd

function CurrentAppWindow
DECLARE INTEGER GetActiveWindow IN win32api
return GetActiveWindow( )
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform