🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SetClassLong problems

#8924
From: Lynn Morrison
Date: Fri, 03 Sep 2004 23:32
29 lines
1692 bytes
Wow, this looks good.... thanks....

Just one question.... what do I do with FOldWndProc? I notice that you
reference it, but I don't know what it is?

Thanks!


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:4138da54$1@newsgroups.borland.com...
>
> "Lynn Morrison" <Cranky@__whisp.com> wrote in message
> news:4138cc6a@newsgroups.borland.com...
>
> > a member function used as a WindProc has to be static
>
> You can use the VCL's MakeObjectInstance() function to get around that.
It
> was specifically designed to allow a non-static member to be used as a
> window procedure.  For example:
>
>     class MSocket
>     {
>     private:
>         void* FWndProc;
>         LONG FOldWndProc;
>         void __fastcall MWndProc(TMessage &Message);
>         //...
>
Technical Details
Message-ID: <4138ff19@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4138cc6a@newsgroups.borland.com> <4138da54$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ce81aceba334526c
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Lynn Morrison" <Cranky@__whisp.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4138cc6a@newsgroups.borland.com> <4138da54$1@newsgroups.borland.com>
Subject: Re: SetClassLong problems
Date: Fri, 3 Sep 2004 19:32:42 -0400
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300
NNTP-Posting-Host: 209.202.121.7
Message-ID: <4138ff19@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1094254361 209.202.121.7 (3 Sep 2004 16:32:41 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail