TTS_ALWAYSTIP doesn't work !
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: TTS_ALWAYSTIP doesn't work !

  1. #1
    Join Date
    Mar 2000
    Posts
    21

    TTS_ALWAYSTIP doesn't work !

    Hi everybody !

    I have a new problem to ask you : in my dialog based application, I would like to implement the tooltip functionality. I have done it with samplecode given in a developer forum. But, the tooltip only appears when the control is active, even if the TTS_ALWAYSTIP option has been specified.

    When the edit control or the button is active, the tooltip appears when the mouse is over the control. It doesn't appear when the control is not active.

    What can I do then ?
    Thanks...


  2. #2
    Join Date
    Dec 2012
    Posts
    5

    Re: TTS_ALWAYSTIP doesn't work !

    I got the same problem now,do u have any splution other that sub classing???

  3. #3
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,297

    Re: TTS_ALWAYSTIP doesn't work !

    Could you provide more details about your problem, app type, IDE and so on?
    Victor Nijegorodov

  4. #4
    Join Date
    Dec 2012
    Posts
    5

    Re: TTS_ALWAYSTIP doesn't work !

    its a SDI application,am disabling the edit control to type any text in that,and i wanted to display tool tip on that edit control but this property is not working.

    IDE is visual studio 2010.

  5. #5
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,297

    Re: TTS_ALWAYSTIP doesn't work !

    Well, how do you display a tooltip?
    Victor Nijegorodov

  6. #6
    Join Date
    Dec 2012
    Posts
    5

    Re: TTS_ALWAYSTIP doesn't work !

    created a tool tip variable,
    added pretranslatemsg function and with this code
    m_tooltip.Create(this, TTS_BALLOON | TTS_ALWAYSTIP );
    m_tooltip.AddTool(GetDlgItem(IDC_EDIT1),_T("edit box"));

  7. #7
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,297

    Re: TTS_ALWAYSTIP doesn't work !

    Well, I usually use a code like this and this and never had any problem to display tooltips for disabled controls!
    Victor Nijegorodov

  8. #8
    Join Date
    Dec 2012
    Posts
    5

    Re: TTS_ALWAYSTIP doesn't work !

    am beginner in MFC can u suggest me any books to prepare.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center