I have implemented a spin button that contains an edit control and an up-down control. It works fine except for tooltips. The parent application window creates a tooltip control and adds my spin button with the TTF_SUBCLASS style. The tool tip correctly displays the text when the mouse cursor pauses over the spin button's border, but not when it is over the edit or up-down control. I have tried sending the TTM_RELAYEVENT message to the spin button from the edit control's subclass procedure, but it did not have any effect. Can anyone tell me,,, How do you get tooltips to work with composite controls? Thanks a lot. David Liebtag
"David Liebtag" wrote: > The parent application window creates a tooltip control and adds > my spin button with the TTF_SUBCLASS style. The tool tip > correctly displays the text when the mouse cursor pauses over > the spin button's border, but not when it is over the edit or > up-down control. You can add both edit and up-down controls to the tooltip. Alternatively, you can specify an area rather than a window for the tooltip. > I have tried sending the TTM_RELAYEVENT message to the spin > button from the edit control's subclass procedure, but it did > not have any effect. You should send TTM_RELAYEVENT message to the tooltip, not the spin button. HTH Alex
Whoops. I meant that I sent the TM_RELAYEVENT messages to the tooltip, not the spin button. Because I'm supporting a scripting language which is supposed to support any kind of controls the user may want to add, it's a little tricky to add children of composite controls to the tooltip. But, I'll try it. Thanks. David
Adding the edit and up-down controls works. Thanks! David Liebtag