Solved

Default Tooltip Font

Posted on 2004-09-13
8
1,119 Views
Last Modified: 2013-12-03
I have a simple question.  What is the default font used by tooltips, and what is its width and height?  Thanks.
0
Comment
Question by:mromeo
  • 4
  • 3
8 Comments
 
LVL 1

Expert Comment

by:reidy_boy
ID: 12045678
MS Sans Serif, font size 8
0
 

Author Comment

by:mromeo
ID: 12045746
I don't understand this...MS Sans Serif doesn't have the serifs at on the characters and my numeral '1' on my tool tip does have serifs (as in the font that is used in this window).  It looks more like Verdana.
0
 
LVL 1

Expert Comment

by:reidy_boy
ID: 12045798
Go to your resource tab, expand the Dialog menu and double click on your main dialog window, right click on the title bar and select properties.  This will tell you what the default font for your dialog is.  On my one it is MS Sans Serif, font size 8 but I would be interested to know if it varies from one PC to the next.
0
 

Author Comment

by:mromeo
ID: 12045850
What do you mean?  This is not a dialog-based app.  This is an MDI application.  In my application's CView class, I create some static text fields (CStatic) to place on the view, and I enable tooltips for the static controls.  I'm trying to figure out what the font is for the tooltips on these static controls.  Is it the same as the font for the static field?  
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:reidy_boy
ID: 12045914
Sorry, I didn't realise you were using a MDI.  In my experience it has always been the same because the font used by tool-tip and static controls is inherited from the same class (CObject I think).
0
 

Author Comment

by:mromeo
ID: 12046832
Nope...that's not it either.  My static field's font is "Courier New," and it's definitely not that one.  Guess I'll just figure it out by process of elimination.
0
 
LVL 3

Accepted Solution

by:
double_axe earned 50 total points
ID: 12053097
You can do it programmatically calling:
NONCLIENTMETRICS nnm;
nnm.cbSize = sizeof(nnm);
::SystemParametersInfo(SPI_GETNONCLIENTMETRICS,sizeof(nnm),&nnm,0);

member lfStatusFont contains tooltip font.

you can also look it in the "Control Panel"->Display properties
0
 

Author Comment

by:mromeo
ID: 12053632
Ah cool...didn't know you could see that in the Display dialog.  It's Tahoma, 8.  Thank you!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
crystal report check box and wingdings font 7 168
if loop in java 3 129
pre4 challenge 19 94
Installing Fonts via Group Policy not Successful 10 76
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

910 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

22 Experts available now in Live!

Get 1:1 Help Now