Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. working with CToolTipCtrl

working with CToolTipCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aviv Halperin
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups