🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How do I get HWND?

#2446
From: Bob Gonder
Date: Sun, 18 Feb 2007 16:52
8 lines
1207 bytes
poojo hackma wrote:

>How do I get that from the main window? Once I have it, I can make it 
>available to the thread.

I use a global.
When WinMain creates the window,  the handle is returned which I then
store in gHWnd.
Technical Details
Message-ID: <kp0ht2189aqq08u9a28k57mcg20o0gsc34@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45d61341$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b586f03571cff47c
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How do I get HWND?
Date: Sun, 18 Feb 2007 08:52:06 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <kp0ht2189aqq08u9a28k57mcg20o0gsc34@4ax.com>
References: <45d61341$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.88.225
X-Trace: newsgroups.borland.com 1171817494 69.69.88.225 (18 Feb 2007 08:51:34 -0800)
Lines: 11
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail