• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 130
  • Last Modified:

Width of window title

I am using a toolwindow style for some of my small windows. But, if the caption does not fit in the title, I want to increase the width of the windows so that the ellipses don't appear. For this, I need to know what font the system uses for toolwindow captions. How do I do that?
1 Solution
>For this, I need to know what font the system uses for
>toolwindow captions

You can use SystemParametersInfo passing the value SPI_GETNONCLIENTMETRICS. This will return everything you need in a NONCLIENTMETRICS structure. The specific information you want is the field lfSmCaptionFont (small caption font).


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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