CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 1999
    Posts
    1

    I want to use CToolTipCtrl in CMyWnd derived from CFrameWnd



    Hello!

    I'm korean student.

    I want to use CToolTipCtrl in MyWnd derived from CFrameWnd.

    The window has many region for tips.

    and Tiptext can change dynamicaly.

    1. m_ToolTip.Create(this, TTS_ALWAYSTIP);

    2. m_ToolTip.AddTool(this);

    3. If mouse pointer is in particular region call

    m_ToolTip.Activate(TRUE);

    m_ToolTip.UpdateTipText("Hello",(CWnd*)this);

    else

    m_ToolTip.Activate(FALSE);

    4. For dynamic text change, call

    m_ToolTip.UpdateTipText("Hello",(CWnd*)this);


    What is wrong?

    Help...

    thank you...



  2. #2
    Join Date
    Mar 1999
    Posts
    8

    Re: I want to use CToolTipCtrl in CMyWnd derived from CFrameWnd



    You need an additional event:


    BOOL CSomething::PreTranslateMessage(MSG* pMsg)

    {

    m_ToolTip.RelayEvent(pMsg);

    return CControlBar::PreTranslateMessage(pMsg);

    }



  3. #3
    Guest

    Re: thank you!

    thank you very much...



Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured