🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Messages and threads

#14869
From: JD
Date: Tue, 29 Jul 2003 12:04
16 lines
1524 bytes
"Fatih Keles" <fatihks@hotmail.com> wrote:
> [...] I have several threads. I want to create specific
> message handlers for each thread. [...]

You don't need to go that far. You could use a generic handler
because PostThreadMessage allows you to use wParam and lParam
which you could use to distinguish individual threads within
the handler.

> you have to register message,

Well, not really. You can use an already defined message(s)
that the thread would never normally recieve like SC_MINIMIZE.

~ JD
Technical Details
Message-ID: <3f2662d8$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!news-out.visi.com!petbe.visi.com!yellow.newsread.com!netaxs.com!newsread.com!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f264d2b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c519897f9efe71e1
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-29 05:09:03 PST
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re:  Messages and threads
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.162.134.53 172.162.134.53    
References:  <3f264d2b@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f2662d8$1@newsgroups.borland.com>
Date: 29 Jul 2003 05:04:40 -0700
X-Trace: newsgroups.borland.com 1059480280 207.105.83.65 (29 Jul 2003 05:04:40 -0700)
Lines: 17
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!news-out.visi.com!petbe.visi.com!yellow.newsread.com!netaxs.com!newsread.com!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail