On Tue Nov 4 13:39:10 2025 +0000, Nikolay Sivov wrote:
Actually TMT_TEXTCOLOR looks fine, but TMT_FONT should probably be using TMT_GLYPHFONT.
Actually, TMT_FONT is both a property type and a valid property ID. Yeah, I know. It's terrible. However, this can be confirmed with remarks from MSDN. For example, see https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/nf-uxtheme-drawt...
The following code also shows that TMT_FONT is a valid property ID. You can see the lfFaceName is valid after the call whereas using TMT_GLYPHFONT is not. ``` { LOGFONTW logfont = {0};
htheme = OpenThemeData(NULL, WC_BUTTONW); hdc = GetDC(hwnd); hr = GetThemeFont(htheme, hdc, BP_COMMANDLINK, 0, TMT_FONT, &logfont); ok(hr == S_OK, "GetThemePartSize failed, hr %#lx.\n", hr); ok(0, "logfont.facename %s.\n", wine_dbgstr_w(logfont.lfFaceName)); } ```