Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wanna know Handle no. of the Window
Message
De
18/07/1998 09:26:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/07/1998 09:12:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00118950
Message ID:
00118955
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform