c++ - How do I get the LOGFONT structure from a …
Apr 11, 2016 · If I have the handle of a window, say hWnd, I can get the handle to its font type, say hFont, like this:. HFONT hFont = SendMessage(hWnd, WM_GETFONT, NULL, NULL); After this point, how do I obtain a LOGFONT structure (which contains many features of the font), from this HFONT handle?. My purpose is not to create a font from scratch by calling CreateFont().
DA: 5 PA: 39 MOZ Rank: 81