kenjinote / GetTitleBarFont

get title bar font

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetTitleBarFont

get title bar font

下記の3行でタイトルバーのフォントは取得できます。

LOGFONTW lf = {};
SystemParametersInfoW(SPI_GETICONTITLELOGFONT, sizeof(LOGFONTW), &lf, 0);
SetWindowText(hEdit, lf.lfFaceName);

ちなみにWindows 11(日本語環境)のフォントはYu Gothic UIでした。

About

get title bar font

License:MIT License


Languages

Language:C++ 100.0%