Active title bar font

  • Thread starter Thread starter Jan Pavel
  • Start date Start date
J

Jan Pavel

Hi,

I'm writing a windows forms application in C# and I need to know active
title bar font type and size. Any opinions how to obtain it in the code?

Thanks
JP
 
Caption is defined by system parameters in Windows. If information in
SystemInformation is not sufficient you might consider using
Win32 API SystemParametersInfo - check SPI_GETNONCLIENTMETRICS action and
related NONCLIENTMETRICS structure, which has entry for logFont used for
caption.

HTH
Alex
 
Back
Top