Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Highlight a minimized App
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00697567
Message ID:
00697763
Views:
15
George, I've advanced a little bit but am still stuck !!

I've set up a .prg as follows:
------------------------------------
* ShowWind
*
Declare Integer FindWindow in Win32API ;
String @lpClassName,String @lpWindowName

lcApplicationTitle = "cmd.exe"
lnHWnd = Findwindow(0,@lcApplicationTitle)
wait window 'Windows handle for cmd.exe = ' + Str(lnHWnd)

Declare Integer ShowWindow in Win32API ;
Integer hwnd, Integer nCmdShow
* lnhWnd is the Window Title
* Restore it to its last size and position
= ShowWindow(lnHWnd,9)
-------------------------------------

I also have (just for testing) a Cmd.exe minimized
If I Do ShowWind, it seems to run without an error, but does not 'Bring Forward' the cmd.exe window, which is what I am trying to do.

Any ideas of where I am going wrong ?

Regards,

Gerard








>>George, thanks for your reply.
>>
>>I could not find anything in API called ShowWindow
>>
>>(I just clicked on API and it brought me to the API section)
>>
>>Am I looking in the right place ?
>
>Yes, and I could've sworn it was there, but it isn't. Here, this'll get you started
DECLARE INTEGER ShowWindow IN Win32API;
>  INTEGER hwnd, INTEGER nCmdShow
>* lnhWnd is the Window handle
>* Restore it to its last size and position
>= ShowWindow(lnhwnd, 9)
In order to get the window handle you can use FindWindow() (which I would hope is in the API section < s >), or my Is_Run32() function, which I know is in the download section.< bg >
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform