Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activate other apps
Message
 
 
To
30/06/2009 12:45:27
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01409215
Message ID:
01409409
Views:
62
>What if the app is already opened - can I switch focus to the window and make it the foremost window?

If you know the caption of this application, try
DECLARE Long FindWindow IN WIN32API String ClassName, String WindowTitle
*DECLARE Long SendMessage IN WIN32API Long hWnd, Long Msg, Long wParam, Long lParam
 
lcWindowTitle = "RI Settings DM.JPG - Paint" && your caption goes there
 
hWnd = FindWindow( Null, lcWindowTitle )
IF hWnd <> 0
   declare integer SetForegroundWindow in win32api Integer

    SetForegroundWindow(hWnd)
endif
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform