Article View: borland.public.cppbuilder.nativeapi
Article #6059Re: How to implement inherited for CM_DIALOGKEY
From: Remy Lebeau (TeamB)
Date: Mon, 13 Jun 2005 17:11
Date: Mon, 13 Jun 2005 17:11
20 lines
1568 bytes
1568 bytes
"Blue Knight" <bevan231X@Xhotmail.com> wrote in message
news:42ad62c4$1@newsgroups.borland.com...
> I have a message handler in my form for CM_DIALOGKEY, in order
> to trap TAB. However, if the current Control is not one of two, then I
> want to perform the default action - how can I do that? In Delphi you
> can use inherited, but I don't know what the equivalent is in C++.
A MESSAGE_MAP is an overrride of the virtual Dispatch() method, so call the
base class Dispatch(), ie:
void __fastcall TMyForm::CMDialogKey(TMessage msg)
{
//...
TForm::Dispatch(&msg);
}
Gambit
Technical Details
Message-ID:
<42adbfa6$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42ad62c4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,59059b6367de65a2 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: <42ad62c4$1@newsgroups.borland.com> Subject: Re: How to implement inherited for CM_DIALOGKEY Date: Mon, 13 Jun 2005 10:11:01 -0700 Lines: 22 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: <42adbfa6$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118683046 68.69.17.41 (13 Jun 2005 10:17:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail