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. How to enable tooltips on CWnd or CStatic derived class that is created by a regular MFC dll

How to enable tooltips on CWnd or CStatic derived class that is created by a regular MFC dll

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorial
3 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.
  • O Offline
    O Offline
    only_jack
    wrote on last edited by
    #1

    hi, i am creating some CStatic based controls on a dialog with a regular MFC DLL. (MFC statically linked) so ,main application calls some functitons in DLL, Like: Create ,Resize ,Move and DLL creates control on main app's dialog and manages control as main app needs my problem is: with this method , tooltips , TAB , CTRL + combinations do not work could you help me to solve this problem, Please thanks in anvance

    V 1 Reply Last reply
    0
    • O only_jack

      hi, i am creating some CStatic based controls on a dialog with a regular MFC DLL. (MFC statically linked) so ,main application calls some functitons in DLL, Like: Create ,Resize ,Move and DLL creates control on main app's dialog and manages control as main app needs my problem is: with this method , tooltips , TAB , CTRL + combinations do not work could you help me to solve this problem, Please thanks in anvance

      V Offline
      V Offline
      Virendra Kulkarni
      wrote on last edited by
      #2

      Do let me know the exact purpose for using static control. Because the functionality that you require can be done using CStatic, however it is easier to use some other control like CButton and then customize it to use in whatever way you want. CButton already has Tab and tooltip enabled. Also to enable tab you need to first set the property tabstop to TRUE(this is FALSE by default for static controls) Then you need to write code to show the focus on the static control. See the following URL to show tool tip on static control: http://sarathc.wordpress.com/2007/09/29/simple-way-to-enable-tooltip-for-static-controls/

      O 1 Reply Last reply
      0
      • V Virendra Kulkarni

        Do let me know the exact purpose for using static control. Because the functionality that you require can be done using CStatic, however it is easier to use some other control like CButton and then customize it to use in whatever way you want. CButton already has Tab and tooltip enabled. Also to enable tab you need to first set the property tabstop to TRUE(this is FALSE by default for static controls) Then you need to write code to show the focus on the static control. See the following URL to show tool tip on static control: http://sarathc.wordpress.com/2007/09/29/simple-way-to-enable-tooltip-for-static-controls/

        O Offline
        O Offline
        only_jack
        wrote on last edited by
        #3

        thank you for your reply but the problem is not that ,i knew that and tried but it does not work because,i am creating the control from a dll , i think this is related with the message loop, but i could not find a solution to this this is a relevant link and this was not work also http://support.microsoft.com/kb/187988/en-us[^] thanks

        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