🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12744

Tooltips - TTN_SHOW return value

#12744
From: Marc
Date: Wed, 19 Nov 2003 20:29
32 lines
2119 bytes
Hi

I am trying to relocate the Tooltips of applications other than
my own.

I currently use SetWindowsHookEx(WH_CALLWNDPROC,....
I trap the WM_NOTIFY and see if the TTN_SHOW is called.

The documentation for TTN_SHOW says the following and I quote 
MSDN:
To display the ToolTip in its default location, return zero. To 
customize the ToolTip position, reposition the ToolTip window 
with the SetWindowPos function and return TRUE. 

My question is "What return value???"  this is a notification 
message, there is no return value.  How do I use this message
correctly to be able to move my window.

I have managed to hack a solution but I have a small glitch.
On the WM_WINDOWPOSCHANGING message I verify if its a tooltip 
and if its not at postion 0,0 and the call a SetWindowPos with 
the new location.  This displays the TT in the new location 
properly but it first flashes it where it initially was suppose 
to be.  Yes this works but the flash is annoying.

Thanks 
Marc

PS: Remy, thanks for the previous help I did manage to change 
the text of any TT.  You last extremely long post was a great 
help.
Technical Details
Message-ID: <3fbbe0a2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!elnk-nf2-pas!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,82bceac0287af760,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-19 13:40:27 PST
From: "Marc" <remove_bukwheat@axess.com>
Sender: "Marc" <remove_bukwheat@axess.com>
Reply-To: "Marc" <remove_bukwheat@axess.com>
Subject: Tooltips - TTN_SHOW return value
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 138.11.254.204     
X-Forwarded-For: unknown
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fbbe0a2$1@newsgroups.borland.com>
Date: 19 Nov 2003 13:29:06 -0700
X-Trace: newsgroups.borland.com 1069277346 207.105.83.66 (19 Nov 2003 13:29:06 -0700)
Lines: 38
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!elnk-nf2-pas!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail