To convert a HFONT to a LOGFONT, use the GDI function GetObject(), as in:
LOGFONT lf;
int ret = GetObject(hfont, sizeof(lf), &lf);
// Be sure to check the return value of GetObject
The code is trivial but the function took me forever to find.
To convert a HFONT to a LOGFONT, use the GDI function GetObject(), as in:
LOGFONT lf;
int ret = GetObject(hfont, sizeof(lf), &lf);
// Be sure to check the return value of GetObject
The code is trivial but the function took me forever to find.