Article View: borland.public.cppbuilder.nativeapi
Article #5675Re: ToolTip Notify ?
From: Sasan
Date: Tue, 02 Aug 2005 17:22
Date: Tue, 02 Aug 2005 17:22
52 lines
2431 bytes
2431 bytes
for create ToolTip i use:
TToolTip::TToolTip(HWND Parent)
{
.........
FHParent = Parent;
}
TForm1::TForm1(...)
{
ToolTip = new TToolTip(this->WindowHandle);
}
//-------------------------------------------------------
void __fastcall TForm1::WndProc(Messages::TMessage &Message)
{
if (Message.Msg == WM_NOTIFY)
{
LPNMHDR lp = (LPNMHDR) Message.LParam;
if ( lp->code == TTN_LINKCLICK)
{
////////////////////////////
// Do my code but never run
ShowMessage("Link click");
}
}
}
Best Regards,
M.T
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:42efa617@newsgroups.borland.com...
>
> "Sasan" <sasan_vm@yahoo.com> wrote in message
> news:42ef1e5f@newsgroups.borland.com...
>
>> Yes i active XP style in my program,
>> if i remove my define ToolTip window proc,
>> and trap WM_NOTIFY in Parent Proc,
>> but nothing happend
>
> You did not answer my question. Like I said earlier, at no point in the
> code are you showing where 'FHParent' is coming from. That is the window
> where the TTN_LINKCLICK notification will be sent to. Please always how
> code snippets that actually compile.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<42efabf1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42eeff0c@newsgroups.borland.com> <42ef1681$1@newsgroups.borland.com> <42ef1e5f@newsgroups.borland.com> <42efa617@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 Reply-To: "Sasan" <sasan_vm@yahoo.com> From: "Sasan" <sasan_vm@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <42eeff0c@newsgroups.borland.com> <42ef1681$1@newsgroups.borland.com> <42ef1e5f@newsgroups.borland.com> <42efa617@newsgroups.borland.com> Subject: Re: ToolTip Notify ? Date: Tue, 2 Aug 2005 21:52:50 +0430 Lines: 54 Organization: Computer Center City X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2055 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2055 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 217.219.90.152 Message-ID: <42efabf1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1123003377 217.219.90.152 (2 Aug 2005 10:22:57 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail