Lines Matching refs:dc
86 HDC dc = ::GetDC(0); in webViewPrintingMarginRect() local
87 rect->right = (::GetDeviceCaps(dc, LOGPIXELSX) * 6.5) - MARGIN; in webViewPrintingMarginRect()
88 rect->bottom = (::GetDeviceCaps(dc, LOGPIXELSY) * 11) - MARGIN; in webViewPrintingMarginRect()
89 ::ReleaseDC(0, dc); in webViewPrintingMarginRect()
102 HDC dc = ::GetDC(0); in webViewHeaderHeight() local
105 ::GetTextMetrics(dc, &textMetric); in webViewHeaderHeight()
106 ::ReleaseDC(0, dc); in webViewHeaderHeight()
118 HDC dc = ::GetDC(0); in webViewFooterHeight() local
121 ::GetTextMetrics(dc, &textMetric); in webViewFooterHeight()
122 ::ReleaseDC(0, dc); in webViewFooterHeight()
138 HDC dc = reinterpret_cast<HDC>(drawingContext); in drawHeaderInRect() local
141 HGDIOBJ hOldFont = ::SelectObject(dc, hFont); in drawHeaderInRect()
146 … int rc = ::DrawTextW(dc, header, length, rect, DT_LEFT | DT_NOCLIP | DT_VCENTER | DT_SINGLELINE); in drawHeaderInRect()
147 ::SelectObject(dc, hOldFont); in drawHeaderInRect()
152 ::MoveToEx(dc, rect->left, rect->bottom, 0); in drawHeaderInRect()
154 HGDIOBJ hOldPen = ::SelectObject(dc, hPen); in drawHeaderInRect()
155 ::LineTo(dc, rect->right, rect->bottom); in drawHeaderInRect()
156 ::SelectObject(dc, hOldPen); in drawHeaderInRect()
171 HDC dc = reinterpret_cast<HDC>(drawingContext); in drawFooterInRect() local
174 HGDIOBJ hOldFont = ::SelectObject(dc, hFont); in drawFooterInRect()
180 ::MoveToEx(dc, rect->left, rect->top, 0); in drawFooterInRect()
182 HGDIOBJ hOldPen = ::SelectObject(dc, hPen); in drawFooterInRect()
183 ::LineTo(dc, rect->right, rect->top); in drawFooterInRect()
184 ::SelectObject(dc, hOldPen); in drawFooterInRect()
186 … int rc = ::DrawTextW(dc, footer, length, rect, DT_LEFT | DT_NOCLIP | DT_VCENTER | DT_SINGLELINE); in drawFooterInRect()
187 ::SelectObject(dc, hOldFont); in drawFooterInRect()