Hi,

Is there any way from VFP to, lets say for example, to open a Microsoft Word
file and have the Word window open at a specific x,y screen offset with a
certain width and height?

I usually use the SHELLEXECUTE feature to launch external programs from VFP
but cannot find a way to do the above.

Thanks

Zoom

RE: Any way to launch an external program from VFP within a specific s by Allan

Allan
Mon Apr 07 01:18:00 CDT 2008

how about automation, will it help?

"Zoom" wrote:

> Hi,
>
> Is there any way from VFP to, lets say for example, to open a Microsoft Word
> file and have the Word window open at a specific x,y screen offset with a
> certain width and height?
>
> I usually use the SHELLEXECUTE feature to launch external programs from VFP
> but cannot find a way to do the above.
>
> Thanks
>
> Zoom
>
>
>
>

Re: Any way to launch an external program from VFP within a specific size window? by Stefan

Stefan
Mon Apr 07 01:23:54 CDT 2008


"Zoom" <keashdoc@hotmail.com> wrote in message
news:7_SdnTOqnPPMD2TanZ2dnUVZ_hynnZ2d@comcast.com...
> Hi,
>
> Is there any way from VFP to, lets say for example, to open a Microsoft Word file and
> have the Word window open at a specific x,y screen offset with a certain width and
> height?
Hello,

There is an API function "SetWindowPos":
http://www.news2news.com/vfp/?group=-1&function=464&PHPSESSID=33091c5c543e8ca3ea7a7c9267084760



hth
-Stefan




--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------


Re: Any way to launch an external program from VFP within a specific size window? by Zoom

Zoom
Mon Apr 07 20:02:05 CDT 2008

Hi Stefan,

Thanks for the info. However, if I use the SHELLEXECUTE command to open
lets say a PDF file, how do I get the handle of that window to use with this
function?

Thanks

Zoom

"Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
news:uL3sMiHmIHA.5160@TK2MSFTNGP05.phx.gbl...
>
> "Zoom" <keashdoc@hotmail.com> wrote in message
> news:7_SdnTOqnPPMD2TanZ2dnUVZ_hynnZ2d@comcast.com...
>> Hi,
>>
>> Is there any way from VFP to, lets say for example, to open a Microsoft
>> Word file and have the Word window open at a specific x,y screen offset
>> with a certain width and height?
> Hello,
>
> There is an API function "SetWindowPos":
> http://www.news2news.com/vfp/?group=-1&function=464&PHPSESSID=33091c5c543e8ca3ea7a7c9267084760
>
>
>
> hth
> -Stefan
>
>
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------



Re: Any way to launch an external program from VFP within a specific size window? by Stefan

Stefan
Tue Apr 08 01:39:14 CDT 2008


"Zoom" <keashdoc@hotmail.com> schrieb im Newsbeitrag
news:uq6dnWvoJraQWWfanZ2dnUVZ_gCdnZ2d@comcast.com...
> Hi Stefan,
>
> Thanks for the info. However, if I use the SHELLEXECUTE command to open lets say a PDF
> file, how do I get the handle of that window to use with this function?

Hi, try a web search for "ShellExcute" + "SetWindowPos" -
for instance these look promising:
http://www.xtremevbtalk.com/archive/index.php/t-23197.html
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q242308
http://forums.devshed.com/visual-basic-programming-52/shell-program-parameters-515098.html



hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------