πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Enable or disable ALT+TAB fast task switching under XP

#8434
From: Paolo Borlandi
Date: Fri, 22 Oct 2004 14:46
68 lines
2579 bytes
No, I exactly mean the SPI_SCREENSAVERRUNNING parameter which can disable
also CTRL+ALT+DEL and CTRL+ESC.

I tested what you have explained but with no success. I have declared the
Hotkey and then I tried to catch it by the WM_HOTKEY message in WndProc
function:


 RegisterHotKey( Handle, idAltTabKey, MOD_ALT, VK_BACK );

...

void __fastcall TFMain::WndProc(Messages::TMessage &Message)
{
switch ( Message.Msg )    {
    case WM_HOTKEY:

        ....
        ....

        break;
    default:
        TForm::WndProc(Message);
        break;
    }
}

...


Is there anything wrong?

Thank YOU!



"JF Jolin" <jfj@nospam.com> ha scritto nel messaggio
news:opsf6p1crtz6rw7b@newsgroups.borland.com...
> Le Wed, 20 Oct 2004 17:25:42 +0200, Paolo Borlandi <pborlandi@virgilio.it>
> a οΏ½crit:
>
> > Hi All
> >
> > Is it possible to enable or disable ALT+TAB fast task switching under
> > windows XP. I do it in Win98 by this function
> >
> > SystemParametersInfo( SPI_SCREENSAVERRUNNING,(WORD)!Enabled,&OldVal,0);
> >
> >
> > THANK YOU VERY MUCH!!!
> >
> > Paolo from Italy
> >
> >
> >
>
> You probably meant SPI_SETFASTTASKSWITCH (obsolete) instead of
> SPI_SCREENSAVERRUNNING.
>
> With RegisterHotKey(hWnd, idAltTabKey, MOD_ALT, VK_TAB )
> you can attach behavior of ALt+Tab to current application.
>
> Do not forget UnregisterHotKey when leaving.
>
>
> -- 
> JF Jolin
> [Montreal, Canada]
Technical Details
Message-ID: <41791d14$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!solnet.ch!solnet.ch!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4176832d@newsgroups.borland.com> <opsf6p1crtz6rw7b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,505a9d8127706b03
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "Paolo Borlandi" <pborlandi@virgilio.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4176832d@newsgroups.borland.com> <opsf6p1crtz6rw7b@newsgroups.borland.com>
Subject: Re: Enable or disable ALT+TAB fast task switching under XP
Date: Fri, 22 Oct 2004 16:46:44 +0200
Lines: 70
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 212.31.242.133
Message-ID: <41791d14$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1098456340 212.31.242.133 (22 Oct 2004 07:45:40 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!solnet.ch!solnet.ch!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail