How can I make box and font size bigger using CToolTipCtrl ?

Posted on 2007-07-27
Last Modified: 2008-01-09
When we use CToolTipCtrl class, the tool tip box and font size are fixed.
I want to make these box and font size bigger than original.
How can I make that ?
Question by:can9999
    LVL 11

    Accepted Solution

    Try this:
    static CToolTipCtrl* pToolTip = NULL;
    CToolTipCtrl* ptt =  AfxGetThreadState()->m_pToolTip;
    // 4 pixel margin
    CRect rc(4,4,4,4);
    pToolTip = ptt;

    for more tips refer:

    Best Regards,

    LVL 86

    Assisted Solution

    To change the font size, use

       LOGFONT lf;                        // Used to create the CFont.
       CFont font;
       memset(&lf, 0, sizeof(LOGFONT));   // Clear out structure.
       lf.lfHeight = 20;                  // Request a 20-pixel-high font
       strcpy(lf.lfFaceName, "Arial");    //    with face name "Arial".
       font.CreateFontIndirect(&lf);    // Create the font.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    Title # Comments Views Activity
    Real VNC setup on Windows 2008 5 33
    ScreenCasting Software 3 96
    Web Browsers Start Page Hijacker 14 47
    Need to Edit a PDF 9 32
    A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
    In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
    Video by: Kyle
    After watching the Introduction to GIMP and additional tools to use in GIMP we are shown how to utilize multiple tools to create a 3D effect image.
    Introduction to GIMP:  GNU Image Manipulation Program. It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now