Article View: borland.public.cppbuilder.nativeapi
Article #11504Re: Switch App to new Desktop
From: zegi
Date: Fri, 06 Feb 2004 10:23
Date: Fri, 06 Feb 2004 10:23
26 lines
1620 bytes
1620 bytes
Hi Remy
Thanks, this is my code, but the form
is still visible in the previous desktop.
Is it possible to move a form from one desktop to an other ?
HWINSTA w=OpenWindowStation(winSt.c_str(),false,MAXIMUM_ALLOWED);
if (w)
{
HDESK d;
d=OpenDesktop(dsk.c_str(),NULL,false,MAXIMUM_ALLOWED);
if (d)
{
SetProcessWindowStation(w);
SetThreadDesktop(d);
SwitchDesktop(d);
CloseDesktop(d);
}
CloseWindowStation(w);
}
Thanks
Zegi
Technical Details
Message-ID:
<40236a94@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<402227d5@newsgroups.borland.com> <40228bde$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,21fd6f1b829e761b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-06 02:39:42 PST Date: Fri, 06 Feb 2004 11:23:32 +0100 From: zegi <zegi@zegi.de> User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Switch App to new Desktop References: <402227d5@newsgroups.borland.com> <40228bde$1@newsgroups.borland.com> In-Reply-To: <40228bde$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.89.121.249 Message-ID: <40236a94@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076062868 212.89.121.249 (6 Feb 2004 02:21:08 -0800) Lines: 26 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail