Article View: borland.public.cppbuilder.nativeapi
Article #16268Re: How do you toggle the desktop?
From: Troels Jakobsen
Date: Sun, 25 May 2003 07:43
Date: Sun, 25 May 2003 07:43
39 lines
2099 bytes
2099 bytes
The desktop is actually just a listview, so if you find its handle
you can show and hide it (or enable/disable it or do other
nasty things).
DesktopListView = FindWindowEx(FindWindow("Progman", null), HWND(0),
"ShellDll_DefView", null);
// Hide icons
ShowWindow(DesktopListView, SW_HIDE);
// Show icons
ShowWindow(DesktopListView, SW_SHOW);
Troels
Remy Lebeau (TeamB) wrote in message <3ecbdb66@newsgroups.borland.com>...
>
>"bmkiss67" <bmkiss67@aaahawk.com> wrote in message
>news:3ecbd859$1@newsgroups.borland.com...
>> I would like to be able to toggle the desktop just
>> like the "Show Desktop" command, the small icon
>> just to the right of the Start button, does.
>
>That particular icon is just a .SCF file that, when clicked, is passed to
>explorer.exe for execution. The .SCF file is just an .INI file that
>contains command parameters that tells explorer what to do, in this case to
>toggle the desktop:
>
> --- Show Desktop.scf ---
> [Shell]
> Command=2
> IconFile=explorer.exe,3
>
> [Taskbar]
> Command=ToggleDesktop
>
>
>Gambit
>
>
Technical Details
Message-ID:
<3ed07404$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ecbd859$1@newsgroups.borland.com> <3ecbdb66@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9be69064bb610d89 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-25 00:45:36 PST From: "Troels Jakobsen" <dont@like.spam> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ecbd859$1@newsgroups.borland.com> <3ecbdb66@newsgroups.borland.com> Subject: Re: How do you toggle the desktop? Date: Sun, 25 May 2003 09:43:18 +0200 Lines: 41 X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 NNTP-Posting-Host: 80.196.79.114 Message-ID: <3ed07404$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1053848580 80.196.79.114 (25 May 2003 00:43:00 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail