LoginSignup
0
0

More than 5 years have passed since last update.

メニューバーと同じフォントを取得する

Posted at

備忘録です。

Windowsでメニューバーで使用されているのと同じフォントを取得します。

NONCLIENTMETRICS ncm;
ncm.cbSize = sizeof(NONCLIENTMETRICS);
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, &ncm, 0);
HFONT hFont = CreateFontIndirect(&ncm.lfMenuFont);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0