Article View: borland.public.cppbuilder.nativeapi
Article #6654Re: Positioning the window opened by ShellExecute()
From: Vladimir Stefanovic
Date: Thu, 21 Apr 2005 17:57
Date: Thu, 21 Apr 2005 17:57
42 lines
2443 bytes
2443 bytes
Thanks. -- Best regards, Vladimir Stefanovic "Alan Bellingham" <alanb@episys.com> wrote in message news:l4pf61d2lil1m87birrtkr4e37h5qlsee9@4ax.com... > "Vladimir Stefanovic" <antivari@po.sbb.co.yu> wrote: > >>I want to open the Help file (di.chm) by ShellExecute(). >>How can I influence to the window position and size? >> >>This is my code: >> >> int rc = (int) ShellExecute( Application->Handle,"open", Help.c_str(), >> NULL, NULL, SW_SHOWDEFAULT ) ; >> >>In Win32API Help it says: >> >><quote> >> SW_SHOWDEFAULT Sets the show state based on the SW_ flag >> specified in the STARTUPINFO structure passed to the CreateProcess >> function by the program that started the application. An application >> should call ShowWindow with this flag to set the initial show state of >>its >> main window. >><quote> >> >>But I do not know how to use that... > > It's the Windows Help Engine that should be obeying the flag, not your > code. You just tell it to start. > > Alternately, do not use ShellExecute. Use the HtmlHelp API, which allows > you the control you want.. > > Alan Bellingham > -- > Me <url:mailto:alanb@episys.com> <url:http://www.doughnut.demon.co.uk/> > ACCU - C, C++ and Java programming <url:http://accu.org/> > The 2004 Discworld Convention <url:http://dwcon.org/>
Technical Details
Message-ID:
<4267e96b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4267b289@newsgroups.borland.com> <l4pf61d2lil1m87birrtkr4e37h5qlsee9@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1bac591bc979b6c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.nativeapi References: <4267b289@newsgroups.borland.com> <l4pf61d2lil1m87birrtkr4e37h5qlsee9@4ax.com> Subject: Re: Positioning the window opened by ShellExecute() Date: Thu, 21 Apr 2005 19:57:10 +0200 Lines: 44 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 82.117.212.65 Message-ID: <4267e96b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114106219 82.117.212.65 (21 Apr 2005 10:56:59 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail