Lines Matching refs:deviceContext
219 HDC deviceContext = ::CreateCompatibleDC(NULL); in LogFontTypeface() local
220 HFONT savefont = (HFONT)SelectObject(deviceContext, font); in LogFontTypeface()
223 if (0 == GetTextMetrics(deviceContext, &textMetric)) { in LogFontTypeface()
225 if (0 == GetTextMetrics(deviceContext, &textMetric)) { in LogFontTypeface()
229 if (deviceContext) { in LogFontTypeface()
230 ::SelectObject(deviceContext, savefont); in LogFontTypeface()
231 ::DeleteDC(deviceContext); in LogFontTypeface()
1338 HDC deviceContext = ::CreateCompatibleDC(NULL); in Serialize() local
1339 HFONT savefont = (HFONT)SelectObject(deviceContext, font); in Serialize()
1342 if (0 == (fontNameLen = GetTextFace(deviceContext, 0, NULL))) { in Serialize()
1344 if (0 == (fontNameLen = GetTextFace(deviceContext, 0, NULL))) { in Serialize()
1350 if (0 == GetTextFace(deviceContext, fontNameLen, fontName.get())) { in Serialize()
1352 if (0 == GetTextFace(deviceContext, fontNameLen, fontName.get())) { in Serialize()
1357 if (deviceContext) { in Serialize()
1358 ::SelectObject(deviceContext, savefont); in Serialize()
1359 ::DeleteDC(deviceContext); in Serialize()