Article View: borland.public.cppbuilder.nativeapi
Article #5669Re: ToolTip Notify ?
From: Remy Lebeau (TeamB)
Date: Tue, 02 Aug 2005 06:41
Date: Tue, 02 Aug 2005 06:41
39 lines
2200 bytes
2200 bytes
"Sasan" <sasan_vm@yahoo.com> wrote in message
news:42eeff0c@newsgroups.borland.com...
> I want do something when user click on link in tooltip but
> i have not know how can grab this message (click on link) ?
> I test TTN_LINKCLICK in ToolTip wndproc but no result !
> can help me about this notify TTN_LINKCLICK ?
Did you read the documentation for TTN_LINKCLICK?
TTN_LINKCLICK only works on XP for balloon tooltips, and only if you include
a manifest file for the application. Your code, however, is not always
creating a balloon tooltip to begin with. You are only creating balloon
tooltips under certain conditions.
Also, you are not taking into account that WM_NOTIFY is always sent to the
window procedure of the *parent* window, but you are trying to catch the
TTN_LINKCLICK notification from the window procedure of the tooltip window
itself, which will never work. At no point in that code did you show where
FHParent is coming from. That is the window where the TTN_LINKCLICK
notification will be sent to.
> #ifdef STRICT
> OLDWNDPROC WNDPROC
> #else
> OLDWNDPROC FARPROC
> #endif
That shouldn't even compile. You are missing #define statements:
#ifdef STRICT
#define OLDWNDPROC WNDPROC
#else
#define OLDWNDPROC FARPROC
#endif
Gambit
Technical Details
Message-ID:
<42ef1681$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42eeff0c@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> Subject: Re: ToolTip Notify ? Date: Mon, 1 Aug 2005 23:41:57 -0700 Lines: 41 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: <42ef1681$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1122965121 68.69.17.41 (1 Aug 2005 23:45:21 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail