How to get tooltip window handle

forum.advanced.programming (1998-2005)
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3522
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

How to get tooltip window handle

Post by Dave Rabelink » 31 Jan 2005, 08:14

 Posted by:  Dave Rabelink 

Hi,

I'm using win32 API (tooltip32 class) to add tooltips to visual objects
using CreateWindowEx.

The window handle of the tooltip window is used to send messages to : add
the tooltip control
and to set titles, colors and dimensions etc etc.
Everything works fine, but i need a way to get the tooltip window handle.

I can store the returned window handle in CreateWindowEx as an attribute of
the visual objects, but i wonder if there is a way to retrieve the tooltip
window handle using a WinApi function.

So for instance, i have a button window handle and want to set the text of
the associated tooltip for that object. I do not have the tooltip window
handle, only the button window handle.

Does WinApi offer a way to do this ?

Dave.

Karthik

Re: How to get tooltip window handle

Post by Karthik » 31 Jan 2005, 08:51

 Posted by:  Karthik 

There is a tooltip class in salextension in which the tooltip is
actually a dialog. Check that out.

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3522
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: How to get tooltip window handle

Post by Dave Rabelink » 31 Jan 2005, 12:10

 Posted by:  Dave Rabelink 

I looked at the SalExtension tooltip (custom dialog).

I only want to use WinApi, no custom dialogs !

WinApi should hold all the functionality i need.

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests