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. CToolTipCtrl: Restrict Tooltip within the dialog

CToolTipCtrl: Restrict Tooltip within the dialog

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 2 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.
  • C Offline
    C Offline
    chandu004
    wrote on last edited by
    #1

    Hi all, i need to restrict the tooltip within the dialog box. when i tried the options like setmargin(), iam seeing the tooltip as flickering. Obviously, the text in the tooltip will be a big sentence, which need to be displayed in multiline. Please convey your suggestions. Thanks in advance.

    -------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.

    M 1 Reply Last reply
    0
    • C chandu004

      Hi all, i need to restrict the tooltip within the dialog box. when i tried the options like setmargin(), iam seeing the tooltip as flickering. Obviously, the text in the tooltip will be a big sentence, which need to be displayed in multiline. Please convey your suggestions. Thanks in advance.

      -------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.

      M Offline
      M Offline
      msr_codeproject
      wrote on last edited by
      #2

      Hi you can use TTM_SETMAXTIPWIDTH to restrict the length of the ToolTip rectangle and wrap the text to the next line. Refer the below link http://msdn.microsoft.com/en-us/library/bb760252%28VS.85%29.aspx#tooltip_sample_multiline[^] Regards msr

      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