Hello All,

I want to minimize a non-FoxPro window in a FoxPro
program. I've been told I can do this with Win API
calls, but this is uncharted territory for me. Can
someone tell me 1) if this is possible and 2) where I
might be able to find some examples?

Thanks,
Brad

Re: Minimize Window by Carsten

Carsten
Tue Sep 16 02:07:33 CDT 2003

Brad,

next to Lees suggestion looking at the MSDN, you can also take a look at
http://www.news2news.com/vfp/
It's a superb description on how to declare and use API-Functions in VFP
(with examples).

ShowWindow's second parameter is how the window is shown.

For a list valid values, do a search on google:
http://www.google.com/search?q=sw_showdefault+sw_hide+sw_shownormal


Cheers
Carsten


"Lee Mitchell" <Leemi@microsoft.com> schrieb im Newsbeitrag
news:471SZ48eDHA.3192@cpmsftngxa07.phx.gbl...
> Hi Brad:
>
> You should be able to do this with the ShowWindow API function. You can
> call this from Visual FoxPro. Use the DECLARE DLL function to initialize
> the API function:
>
> DECLARE INTEGER ShowWindow IN WIN32API
>
> You can get information on the ShowWindow API from the MSDN:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui
>
/windowsuserinterface/windowing/windows/windowreference/windowfunctions/show
> window.asp
>
>
> I hope this helps.
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> Sincerely,
> Microsoft FoxPro Technical Support
> Lee Mitchell
>
> *-- VFP8 HAS ARRIVED!! --*
> Read about all the new features of VFP8 here:
> http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
> Purchase VFP8 here:
> http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
>
> Keep an eye on the product lifecycle for Visual FoxPro here:
> http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
> - VFP5 Mainstream Support retires June 30th, 2003
> - VFP6 Mainstream Support retires Sept. 30th, 2003
>
>
> >Hello All,
>
> >I want to minimize a non-FoxPro window in a FoxPro
> >program. I've been told I can do this with Win API
> >calls, but this is uncharted territory for me. Can
> >someone tell me 1) if this is possible and 2) where I
> >might be able to find some examples?
>
> >Thanks,
> >Brad
>