Article View: borland.public.cppbuilder.nativeapi
Article #16712Re: Desktop
From: Diederik
Date: Thu, 01 May 2003 04:22
Date: Thu, 01 May 2003 04:22
38 lines
2294 bytes
2294 bytes
Thx REmy,
In fact I can switch to my newly created desktop.
The problem is that I have nothing(no windows) on this new desktop.
So what i want is a real and effective new desktop. Am i clear enough.?
Thank you
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3eb048b2$1@newsgroups.borland.com...
>
> "Diederik" <diederik@noos.fr> wrote in message
> news:3eb04583$1@newsgroups.borland.com...
>
> > Does anybody have a sample of the createDesktop API function?
>
> It would help if you would provide more details about what exactly you
want
> to use the new desktop for. But in general, it is something along the
> following basics (need more details to provide deeper examples):
>
> DWORD dwDesiredAccess = (DESKTOP_CREATEMENU | DESKTOP_CREATEWINDOW |
> DESKTOP_ENUMERATE | DESKTOP_SWITCHDESKTOP);
>
> HDESK hDesktop = CreateDesktop("MyDesktop", NULL, NULL, 0,
> dwDesiredAccess, NULL);
> HDESK hPrevious = OpenInputDesktop(0, FALSE, DESKTOP_SWITCHDESKTOP);
> ...
> SwitchDesktop(hDesktop);
> // use desktop as needed
> ...
> SwitchDesktop(hPrevious);
> CloseDesktop(hPrevious);
> CloseDesktop(hDesktop);
>
>
> Gambit
>
>
Technical Details
Message-ID:
<3eb0a068$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3eb04583$1@newsgroups.borland.com> <3eb048b2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,474d5e404a5bdf2f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-30 21:22:07 PST Reply-To: "Diederik" <diederik@noos.fr> From: "Diederik" <diederik@noos.fr> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eb04583$1@newsgroups.borland.com> <3eb048b2$1@newsgroups.borland.com> Subject: Re: Desktop Date: Thu, 1 May 2003 06:22:28 +0200 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 81.67.179.235 Message-ID: <3eb0a068$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051762792 81.67.179.235 (30 Apr 2003 21:19:52 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail