Article View: borland.public.cppbuilder.nativeapi
Article #13948Re: Always On Top
From: Mike King
Date: Tue, 09 Sep 2003 17:53
Date: Tue, 09 Sep 2003 17:53
40 lines
2288 bytes
2288 bytes
Yes. I tried a test application that had a single form and it worked but I can't get it to work if I set the Main Form's Visible property to false. The application that I'm writing has a feature called "Mini Mode" which creates another form which is much smaller and I want that form to "Stay On Top". Do you know how to do that? OP code: Set Main Form's Visible property to False Instantiate and Display Mini Mode Form and set it to be always on top "Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message news:3f5e05b8$1@newsgroups.borland.com... > > "Mike King" <emailMK@excite.com> wrote in message > news:3f5df558@newsgroups.borland.com... > > How can I keep an application always on top? I have tried > > SetWindowPos(...) but it only keeps a window within the > > application on top. > > SetWindowsPos() is the correct function to use, and it does work to keep a > window on top of other windows regardless of application, so I would suspect > your use of it is incorrect. > > > I want the same functionality that the Windows Taskbar has > > by default. > > The Taskbar is an AppBar, is it not a normal window. > > > Gambit > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03 > >
Technical Details
Message-ID:
<3f5e1390@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f5df558@newsgroups.borland.com> <3f5e05b8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,1acbe53880abfff X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-09 11:01:09 PST From: "Mike King" <emailMK@excite.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f5df558@newsgroups.borland.com> <3f5e05b8$1@newsgroups.borland.com> Subject: Re: Always On Top Date: Tue, 9 Sep 2003 13:53:20 -0400 Lines: 42 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: 64.45.143.248 Message-ID: <3f5e1390@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1063130000 64.45.143.248 (9 Sep 2003 10:53:20 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail