🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Cloning a window

#3566
From: Old Wolf
Date: Mon, 29 May 2006 22:57
6 lines
1228 bytes
If I have the HWND of a top-level window, how can I create another identical window?

The reason for this is the same reason as you would create multiple instances of a TForm-derived dialog, although in this case I only have the HWND to work from.

I suppose I could create a new window with CreateWindowEx, and then recursively go through all of its child windows doing the same. But before I reinvent the wheel I would like to know if anybody has done this before. 
Technical Details
Message-ID: <447b7c4f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f8bf36be28763607,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Old Wolf" <oldwolf@inspire.net.nz>
Sender: "Old Wolf" <oldwolf@inspire.net.nz>
Reply-To: "Old Wolf" <oldwolf@inspire.net.nz>
Subject: Cloning a window
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 202.27.193.8     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <447b7c4f$1@newsgroups.borland.com>
Date: 29 May 2006 15:57:19 -0700
X-Trace: newsgroups.borland.com 1148943439 207.105.83.66 (29 May 2006 15:57:19 -0700)
Lines: 7
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail