Click here to Skip to main content
13,296,377 members (50,127 online)
Click here to Skip to main content
Add your own
alternative version


21 bookmarked
Posted 16 Jul 2003

VB style tool tip control similar to IntelliSense ToolTip

, 16 Jul 2003
Rate this:
Please Sign up or sign in to vote.
Tool tip control similar to Visual Basic IntelliSense tool tip

Sample Image - intellitip.jpg


This is a CDialog derived window, which resembles the tool tip that pop-ups with function parameters in Visual Studio IDE. The control allows to display a function definition with it's parameters and mark the current parameter in bold font.


  1. Add a dialog resource to your project. Make sure to set the following for this dialog:
    Style = popup. 
    Border = None.
    No TitleBar
  2. Add the dialog as a member to your application's main window.
  3. Call create for the dialog while passing pointer to the window that the tool tip belongs to: m_intelliToolTip.Create(pParentWnd).
  4. Add a function definition:
    BOOL CIntelliTipDemoDlg::OnInitDialog()
     // Set the icon for this dialog.  The framework does this automatically
     //  when the application's main window is not a dialog
     SetIcon(m_hIcon, TRUE);   // Set big icon
     SetIcon(m_hIcon, FALSE);  // Set small icon
     // TODO: Add extra initialization here
     CStringArray params;
     params.Add("Param 1");
     params.Add("Param 2");
     params.Add("Param 3");
     params.Add("Param 4");
     params.Add("Param 5");
     return TRUE;  // return TRUE  unless you set the focus to a control

When you need to show the tool tip, call CIntelliTip::Show() or CIntelliTip::Hide() to hide it. To set the position, call CIntelliTip::SetCursorPoint(cursorPoint). Example:

void CIntelliTipDemoDlg::OnButton1() 
 // TODO: Add your control notification handler code here
 CPoint pt;


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Alex Hazanov
Software Developer (Senior) RDV Systems
Israel Israel
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralThanks,but i have a problem Pin
Lancelot Yuan14-Jul-05 17:57
memberLancelot Yuan14-Jul-05 17:57 
GeneralRe: Thanks,but i have a problem Pin
Alex Hazanov16-Jul-05 11:50
memberAlex Hazanov16-Jul-05 11:50 
GeneralVery Nice Pin
spaceseel29-May-05 17:52
memberspaceseel29-May-05 17:52 
GeneralThankyou!!! Pin
Adrian Gibbons17-Jul-03 3:02
memberAdrian Gibbons17-Jul-03 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171207.1 | Last Updated 17 Jul 2003
Article Copyright 2003 by Alex Hazanov
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid