Oh, and the hndWin parameter is numeric Dave
-----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Dave Crozier Sent: 11 April 2016 13:27 To: ProFox Email List <[email protected]> Subject: RE: ShellExecute window size ignored Paul, I don't use Adobe it is a pain but the equivalent runs with FoxitReader PDF reader. Set up cParams to be path to the PDF to open. DECLARE INTEGER ShellExecute IN shell32.dll ; INTEGER hndWin, ; STRING cAction, ; STRING cFileName, ; STRING cParams, ; STRING cDir, ; INTEGER nShowWin cParams="" cFileName = "C:\Program Files (x86)\Foxit Software\Foxit Reader\foxitreader.exe" cAction = "open" *nMode = 1 && Standard Window nMode = 3 && Full screen ShellExecute(0,cAction,cFileName,cParams,"",nMode) -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Paul Newton Sent: 11 April 2016 12:27 To: [email protected] Subject: RE: ShellExecute window size ignored Thanks but I tried that and it still didn't work - it was another developer who wrote the code and assigned a numeric value to lcCallingWindow instead of lnCallingWindow -----Original Message----- From: ProfoxTech [mailto:[email protected]] On Behalf Of Fernando D. Bozzo Sent: 11 April 2016 12:04 To: [email protected] Subject: Re: ShellExecute window size ignored Hi Paul: lcCallingWindow should be numeric, and normally is 0. Try if this makes any difference El 11/4/2016 11:49 a. m., "Paul Newton" <[email protected]> escribió: > Hi all > > I am trying to view a PDF in a maximized window > > ShellExecute(lcCallingWindow, "Open", lcFileName, "", "", 3) > > The last parameter _should_ force the application window to be > maximized but it doesn't :( > > The default application for PDFs on my system is Adobe Reader XI > V11.0.09 and I am running Windows 7. Has anybody else had a similar issue? > > Thanks > > Paul Newton > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cagq_jums0wcmhyhonuqvbla-qv4aatcoq-yqcd6dpyexw9x...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. Report [OT] Abuse: http://leafe.com/reportAbuse/cagq_jums0wcmhyhonuqvbla-qv4aatcoq-yqcd6dpyexw9x...@mail.gmail.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

