🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Fullscreen form in separate desktop

#9666
From: nicolasr
Date: Tue, 29 Jun 2004 00:23
31 lines
2235 bytes
thanks Remy,

> > 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?

Yes that works well. However, the user does not have a visual feedback
that there are other windows still open. Probably I should consider to
implement
something like the Windows Taskbar in my app. I will do some tests on that.

> > 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.

How do I deny the request? From the documentation of WM_SETFOCUS
it seems like this message is sent after my Form got focus. Should I pass
the focus back to the window that is passed in the wParam?

thanks for the help,
Nick
Technical Details
Message-ID: <40e0b684$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40e0902a@newsgroups.borland.com> <40e0939e$1@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: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40e0902a@newsgroups.borland.com> <40e0939e$1@newsgroups.borland.com>
Subject: Re: Fullscreen form in separate desktop
Date: Tue, 29 Jun 2004 02:23:01 +0200
Lines: 33
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: 80.133.172.143
Message-ID: <40e0b684$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088468612 80.133.172.143 (28 Jun 2004 17:23:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail