I have subclassed CButton and want to have a tooltip on it.
I have previously got tooltips working for several controls in a CWnd, controlled by the CWnd, but I want this CButton to have all the code for its own tooltips, not its parent window. I have tried transplanting the code that worked for the CWnd, but using this instead of the controls in AddTool, ie:
m_tooltip.Create(this, TTS_NOPREFIX| TTS_ALWAYSTIP);
I've overloaded PreTranslateMessage to have m_tooltip.RelayEvent(pMsg);
This isn't working. I don't know whether I'm going about this right but making a mistake somewhere, or whether I need a completely different approach. What should I be doing?