working with CToolTipCtrl
-
Hi, I have a CEdit derived class I want to use for all my edit buttons in a dialog (lets call it MyCEditBase). I want to use a tool tip for each edit that is derived from MyCEditBase. I added the definition CToolTipCtrl m_wndToolTip; to MyCEditBase header file. Now I created and I'm trying to use a tool tip for a CEdit control with the following code: m_wndToolTip.Create(this); m_wndToolTip.Activate(m_EnableToolTip); m_ToolTipText = "Edit Button Text"; m_wndToolTip.AddTool(this, m_ToolTipText); Now to show the tool tip I have to override PreTranslateMessage but this is NEVER CALLED!!! Then I tried to catch all ouse messages in OnWndMsg and execute the following: m_wndToolTip.RelayEvent(&msg); with a msg I filled myself. This does not show a tool tip. Thanks. avivhal