Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with GetForegroundWindow in WIN32API
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problem with GetForegroundWindow in WIN32API
Miscellaneous
Thread ID:
00296799
Message ID:
00296799
Views:
83
Based on a message on the thread, I did the following code (It is used when doing a Crystal report, to make sure my app is waiting for completion of Crystal):

#DEFINE WS_MAXIMIZE 29949952
Declare integer GetForegroundWindow in WIN32API
Declare short IsWindow in WIN32API
...blablabla I call Crystal in preview mode...

lnHwndActiveX = GetForegroundWindow()
Do while IsWindow(lnHwndActiveX) # 0
Enddo

It fail on the second line (Declare integer GetForegroundWindow...).
DO I have to do something else in order to use Win32api ?

Thanks
ERic
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Next
Reply
Map
View

Click here to load this message in the networking platform