07-09-2016, 01:45 PM
To create common menu DC I use this algorithm. Maybe a better way exist.
Get NONCLIENTMETRICSW with SystemParametersInfoW(SPI_GETNONCLIENTMETRICS...);
From its lfMenuFont create font with CreateFontIndirectW.
Create DC with CreateCompatibleDC and select the font with SelectObject.
Get NONCLIENTMETRICSW with SystemParametersInfoW(SPI_GETNONCLIENTMETRICS...);
From its lfMenuFont create font with CreateFontIndirectW.
Create DC with CreateCompatibleDC and select the font with SelectObject.