Article View: borland.public.cppbuilder.nativeapi
Article #13737Re: ShowWindow Strange problem
From: Martin C
Date: Sun, 21 Sep 2003 14:03
Date: Sun, 21 Sep 2003 14:03
42 lines
2215 bytes
2215 bytes
Hi Rodolfo, Thanks for your answer, I put these two lines in the project source file just after the application initialize line and the creation of the application main form Application->Initialize(); Application->Title = "Project1"; Application->CreateForm(__classid(TForm1), &Form1); Application->ShowMainForm = false; ShowWindow(Application->Handle, SW_HIDE); thanks "Rodolfo Frino" <rodolfofrino@yahoo.com> wrote in message news:3f6da9d8@newsgroups.borland.com... > > "Martin C" <martinc@aol.com> wrote in message > news:3f6b8c3d@newsgroups.borland.com... > > I've a really strange problem when using ShowWindow API in my project, > > whenever I try to run my project all other window applications (ex. word, > > exel...etc.) looses there taskbar icon (meaning they don't show at ALL in > > the taskbar) and I can only switch from one application to the other using > > Alt+Tab !! I use the following code : > > > > Application->ShowMainForm = false; > > ShowWindow(Application->Handle, SW_HIDE); > > > > can someone help me please and tell me what I am doing wrong... > > > > thanks. > > Where exactly do you put these two lines in your application? > > Rodolfo > >
Technical Details
Message-ID:
<3f6dafaf@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f6b8c3d@newsgroups.borland.com> <3f6da9d8@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,bdc0185acaa06b8a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-21 07:09:10 PST From: "Martin C" <martinc@aol.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f6b8c3d@newsgroups.borland.com> <3f6da9d8@newsgroups.borland.com> Subject: Re: ShowWindow Strange problem Date: Sun, 21 Sep 2003 06:03:29 -0800 Lines: 44 Organization: V Safe X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 62.135.27.157 Message-ID: <3f6dafaf@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1064153007 62.135.27.157 (21 Sep 2003 07:03:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail