Article View: borland.public.cppbuilder.nativeapi
Article #16719Re: Desktop
From: dln
Date: Thu, 01 May 2003 11:03
Date: Thu, 01 May 2003 11:03
51 lines
2960 bytes
2960 bytes
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:
<3eb0fd5b$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!newshosting.com!news-xfer1.atl.newshosting.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3eb04583$1@newsgroups.borland.com> <3eb048b2$1@newsgroups.borland.com> <3eb0a068$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-01 04:20:51 PST From: "dln" <dnadon@nospam.austin.rr.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eb04583$1@newsgroups.borland.com> <3eb048b2$1@newsgroups.borland.com> <3eb0a068$1@newsgroups.borland.com> Subject: Re: Desktop Date: Thu, 1 May 2003 06:03:51 -0500 Lines: 53 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 66.25.203.129 Message-ID: <3eb0fd5b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051786587 66.25.203.129 (1 May 2003 03:56:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail