Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make FoxPro top window automatically with a timer
Message
 
To
06/09/2001 14:51:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00553209
Message ID:
00553342
Views:
24
That's easy, if you put the declaration and the call together:

DECLARE INTEGER FindWindow IN Win32API STRING, STRING
hWnd = FindWindow(0,THIS.CAPTION)

FindWindow takes 2 parameters type STRING and their values are 0 and THIS.CAPTION, and returns an integer hWnd, the window handle



DECLARE INTEGER SetForegroundWindow IN "User32.dll" INTEGER
not used=SetForegroundWindow(hWnd)

SetForegroundWindow takes 1 parameter type INTEGER, the hWnd and returns an INTEGER that in your example is not used.
Doru
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform