[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1157
  • Last Modified:

Default Tooltip Font

I have a simple question.  What is the default font used by tooltips, and what is its width and height?  Thanks.
0
mromeo
Asked:
mromeo
  • 4
  • 3
1 Solution
 
reidy_boyCommented:
MS Sans Serif, font size 8
0
 
mromeoAuthor Commented:
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
 
reidy_boyCommented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
mromeoAuthor Commented:
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
 
reidy_boyCommented:
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
 
mromeoAuthor Commented:
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
 
double_axeCommented:
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
 
mromeoAuthor Commented:
Ah cool...didn't know you could see that in the Display dialog.  It's Tahoma, 8.  Thank you!!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now