🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to ... ?

#753
From: Remy Lebeau (TeamB)
Date: Thu, 24 Jan 2008 21:41
18 lines
1535 bytes
"Jos�" <jose@127.0.0.1> wrote in message 
news:871ip39v9f1nqt1f3i2pk22bpfifsl6p3t@4ax.com...

> A program displays some status information. I want it
> to be "Always On Top" without taking focus for input.
> Can it be done?

Sure.  "Stay on Top" and "input focus" are two separate things.  Just 
because a window is on top does not mean that the user can't still click on 
other windows.

> Can a program force the computer to shut down?

Look at the EWX_POWEROFF and EWX_SHUTDOWN flags of ExitWindowsEx()


Gambit 
Technical Details
Message-ID: <479905e2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <871ip39v9f1nqt1f3i2pk22bpfifsl6p3t@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,92f426904d27d7ce
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <871ip39v9f1nqt1f3i2pk22bpfifsl6p3t@4ax.com>
Subject: Re: How to ... ?
Date: Thu, 24 Jan 2008 13:41:36 -0800
Lines: 20
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 207.178.157.90
Message-ID: <479905e2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1201210850 207.178.157.90 (24 Jan 2008 13:40:50 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail