Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Link to email
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00194055
Message ID:
00195040
Views:
21
Ed,

Howsabout we start a contest to see how many ways there are to find the FoxPro window handle? *L*

>>Calvin,
>>
>>You can use the Foxtools MainHWND() function instead of the FindWindow() function you are using.
>>
>>>DECLARE INTEGER FindWindow IN WIN32API ;
>>> STRING cNull,STRING cWinName
>>>RETURN ShellExecute(FindWindow(0, _SCREEN.caption),lcAction, lcLink, lcParms, SYS(2023), 1)
>
>You can also use GetActiveWindow():
>
>DECLARE INTEGER GetActiveWindow IN WIN32API
>hWnd = GetActiveWindow()
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform