Article View: borland.public.cppbuilder.nativeapi
Article #7868Re: Controls Class BC5 vs BC6
From: Remy Lebeau (TeamB)
Date: Fri, 17 Dec 2004 18:31
Date: Fri, 17 Dec 2004 18:31
26 lines
1612 bytes
1612 bytes
"El" <elias.berelian@snet.net> wrote in message
news:41c31afb$1@newsgroups.borland.com...
> In order to do drag & drop I was using:
> Controls::TWndMethod OldWindowProc ;
> .. and:
> OldWindowProc = WindowProc ;
You are not having a component subclass its own WindowProc, are you? If so,
then you should never do that. Override the WndProc() method instead.
> in BCPPB5. Same project in version 6 of builder causes an error:
> E2316 'TWndMethod' is not a member of 'Controls'.
The compiler is correct. TWndMethod was moved to the Classes unit:
Classes::TWndMethod OldWindowProc ;
> A look in the hpp file shows TWndMethod is there
It is not defined in Controls.hpp anymore. It is declared in Classes.hpp
now.
Gambit
Technical Details
Message-ID:
<41c325d3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41c31afb$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a08d779203a41a49 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41c31afb$1@newsgroups.borland.com> Subject: Re: Controls Class BC5 vs BC6 Date: Fri, 17 Dec 2004 10:31:22 -0800 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41c325d3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103308243 68.69.17.41 (17 Dec 2004 10:30:43 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail