🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9664

Re: Fullscreen form in separate desktop

#9664
From: Remy Lebeau (TeamB)
Date: Mon, 28 Jun 2004 21:50
22 lines
1772 bytes
"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message
news:40e0902a@newsgroups.borland.com...

> The problem is that my app should behave like a 'Shell'
> but behaves like any regular form except that it's full-screen.
> F.e. the user starts MS Access from my app. Access pops
> up. If the user now clicks inadvertently on my app it comes to
> foreground and Access is lost and hidden behind my app.

What about using Alt+Tab?

> Is it possible to have my app always behind all other windows?

Not really.  What you could try doing, however, is have the form intercept
the WM_SETFOCUS and WM_KILLFOCUS messages.  When the form receives a request
to set focus, have it check if any other windows are currently visible, and
if so then deny the request.  Likewise, if there are no windows currently
available, a request to remove the focu could be denied as well.


Gambit
Technical Details
Message-ID: <40e0939e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40e0902a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,41282ca06bc5c7b9
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40e0902a@newsgroups.borland.com>
Subject: Re: Fullscreen form in separate desktop
Date: Mon, 28 Jun 2004 14:50:48 -0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.169.168.124
Message-ID: <40e0939e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088459678 68.169.168.124 (28 Jun 2004 14:54:38 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail