Article View: borland.public.cppbuilder.nativeapi
Article #16661Re: Desktop
From: Diederik
Date: Sun, 04 May 2003 12:10
Date: Sun, 04 May 2003 12:10
61 lines
3186 bytes
3186 bytes
OK Guys thank for your clues.
"dln" <dnadon@nospam.austin.rr.com> wrote in message
news:3eb0fd5b$1@newsgroups.borland.com...
> You'll need to start a new instance of Windows Explorer. The first
instance
> of explorer on any desktop effectively controls the Windows "shell" -
it'll
> give you your Start menu and desktop icons. If you use the CreateProcess
> API call to start Explorer on the new desktop, make sure that you specify
> the name of the desktop you wish to start Explorer on, in the STARTUPINFO
> structure that is passed to CreateProcess. That should do it for you.
>
> HTH
>
> "Diederik" <diederik@noos.fr> wrote in message
> news:3eb0a068$1@newsgroups.borland.com...
> > 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:
<3eb502a4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eb04583$1@newsgroups.borland.com> <3eb048b2$1@newsgroups.borland.com> <3eb0a068$1@newsgroups.borland.com> <3eb0fd5b$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-05-04 05:16:40 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> <3eb0a068$1@newsgroups.borland.com> <3eb0fd5b$1@newsgroups.borland.com> Subject: Re: Desktop Date: Sun, 4 May 2003 14:10:47 +0200 Lines: 63 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: <3eb502a4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1052050084 81.67.179.235 (4 May 2003 05:08:04 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail