Article View: borland.public.cppbuilder.nativeapi
Article #5677Re: ToolTip Notify ?
From: Remy Lebeau (TeamB)
Date: Tue, 02 Aug 2005 19:56
Date: Tue, 02 Aug 2005 19:56
20 lines
1557 bytes
1557 bytes
"Sasan" <sasan_vm@yahoo.com> wrote in message
news:42efabf1@newsgroups.borland.com...
> TForm1::TForm1(...)
> {
> ToolTip = new TToolTip(this->WindowHandle);
> }
You should be using the Handle property instead of the WindowHandle:
ToolTip = new TToolTip(this->Handle);
Also, you are not taking into account that the TForm's Handle can change
during the lifetime of the form. You should override the form's CreateWnd()
and DestroyWnd() methods in order to keep the Tooltip's parent window
up-to-date when the form's Handle changes.
Gambit
Technical Details
Message-ID:
<42efd0c1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42eeff0c@newsgroups.borland.com> <42ef1681$1@newsgroups.borland.com> <42ef1e5f@newsgroups.borland.com> <42efa617@newsgroups.borland.com> <42efabf1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7cccfbb0a45ed729 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: <42eeff0c@newsgroups.borland.com> <42ef1681$1@newsgroups.borland.com> <42ef1e5f@newsgroups.borland.com> <42efa617@newsgroups.borland.com> <42efabf1@newsgroups.borland.com> Subject: Re: ToolTip Notify ? Date: Tue, 2 Aug 2005 12:56:36 -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: <42efd0c1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123012801 68.69.17.41 (2 Aug 2005 13:00:01 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail