🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Desktop

#16709
From: Remy Lebeau (TeamB)
Date: Wed, 30 Apr 2003 22:06
26 lines
1833 bytes
"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: <3eb048b2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!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
References: <3eb04583$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 15:12:13 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3eb04583$1@newsgroups.borland.com>
Subject: Re: Desktop
Date: Wed, 30 Apr 2003 15:06:58 -0700
Lines: 28
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: 207.175.226.26
Message-ID: <3eb048b2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051740338 207.175.226.26 (30 Apr 2003 15:05:38 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!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