Lines Matching refs:m_hDC
41 HDC m_hDC;
48 m_hDC = CreateCompatibleDC(NULL);
56 DeleteDC(m_hDC);
148 EnumFontFamiliesExA(m_hDC, &lf, (FONTENUMPROCA)FontEnumProc, (FX_UINTPTR)this, 0);
321 HFONT hOldFont = (HFONT)::SelectObject(m_hDC, hFont);
322 int ret = ::GetTextFaceA(m_hDC, 100, facebuf);
323 ::SelectObject(m_hDC, hOldFont);
369 HFONT hOldFont = (HFONT)::SelectObject(m_hDC, (HFONT)hFont);
371 size = ::GetFontData(m_hDC, table, 0, buffer, size);
372 ::SelectObject(m_hDC, hOldFont);
381 HFONT hOldFont = (HFONT)::SelectObject(m_hDC, (HFONT)hFont);
382 int ret = ::GetTextFaceA(m_hDC, 100, facebuf);
383 ::SelectObject(m_hDC, hOldFont);
393 HFONT hOldFont = (HFONT)::SelectObject(m_hDC, (HFONT)hFont);
394 ::GetTextMetrics(m_hDC, &tm);
395 ::SelectObject(m_hDC, hOldFont);
428 m_hDC = hDC;
432 if (GetObjectType(m_hDC) == OBJ_MEMDC) {
434 hBitmap = (HBITMAP)SelectObject(m_hDC, hBitmap);
440 hBitmap = (HBITMAP)SelectObject(m_hDC, hBitmap);
443 m_nBitsPerPixel = ::GetDeviceCaps(m_hDC, BITSPIXEL);
444 m_Width = ::GetDeviceCaps(m_hDC, HORZRES);
445 m_Height = ::GetDeviceCaps(m_hDC, VERTRES);
472 if (::GetClipRgn(m_hDC, hClipRgn) == 0) {
498 ::StretchDIBits(m_hDC, left, top, dst_width, dst_height,
511 ::SetDIBitsToDevice(m_hDC, left, top, width, height, pSrcRect->left, pBitmap->GetHeight() - pSrcRect->bottom,
533 SetStretchBltMode(m_hDC, HALFTONE);
535 SetStretchBltMode(m_hDC, COLORONCOLOR);
544 ::StretchDIBits(m_hDC, dest_left, dest_top, dest_width, dest_height,
574 SetStretchBltMode(m_hDC, HALFTONE);
578 ::StretchDIBits(m_hDC, dest_left, dest_top, dest_width, dest_height,
584 return ::GetClipBox(m_hDC, (RECT*)pRect);
588 ::SelectClipRgn(m_hDC, (HRGN)hRgn);
737 MoveToEx(m_hDC, FXSYS_round(x1), FXSYS_round(y1), NULL);
738 LineTo(m_hDC, FXSYS_round(x2), FXSYS_round(y2));
787 if (pPlatform->m_GdiplusExt.DrawPath(m_hDC, pPathData, pMatrix, pGraphState, fill_color, stroke_color, fill_mode)) {
798 SetMiterLimit(m_hDC, pGraphState->m_MiterLimit, NULL);
800 hPen = (HPEN)SelectObject(m_hDC, hPen);
803 SetPolyFillMode(m_hDC, fill_mode);
805 hBrush = (HBRUSH)SelectObject(m_hDC, hBrush);
818 _SetPathToDC(m_hDC, pPathData, pMatrix);
822 StrokeAndFillPath(m_hDC);
824 FillPath(m_hDC);
825 _SetPathToDC(m_hDC, pPathData, pMatrix);
826 StrokePath(m_hDC);
829 StrokePath(m_hDC);
832 FillPath(m_hDC);
836 hPen = (HPEN)SelectObject(m_hDC, hPen);
840 hBrush = (HBRUSH)SelectObject(m_hDC, hBrush);
861 ::FillRect(m_hDC, (RECT*)pRect, hBrush);
874 IntersectClipRect(m_hDC, rect.left, rect.top, rect.right, rect.bottom);
878 _SetPathToDC(m_hDC, pPathData, pMatrix);
879 SetPolyFillMode(m_hDC, fill_mode & 3);
880 SelectClipPath(m_hDC, RGN_AND);
889 hPen = (HPEN)SelectObject(m_hDC, hPen);
890 _SetPathToDC(m_hDC, pPathData, pMatrix);
891 WidenPath(m_hDC);
892 SetPolyFillMode(m_hDC, WINDING);
893 FX_BOOL ret = SelectClipPath(m_hDC, RGN_AND);
894 hPen = (HPEN)SelectObject(m_hDC, hPen);
912 hPen = (HPEN)SelectObject(m_hDC, hPen);
913 MoveToEx(m_hDC, FXSYS_round(x1), FXSYS_round(y1), NULL);
914 LineTo(m_hDC, FXSYS_round(x2), FXSYS_round(y2));
915 hPen = (HPEN)SelectObject(m_hDC, hPen);
936 HBITMAP hbmp = CreateCompatibleBitmap(m_hDC, width, height);
937 HDC hDCMemory = CreateCompatibleDC(m_hDC);
939 BitBlt(hDCMemory, 0, 0, width, height, m_hDC, left, top, SRCCOPY);
1076 return pPlatform->m_GdiplusExt.StretchDIBits(m_hDC, pBitmap, dest_left, dest_top, dest_width, dest_height, pClipRect, flags);
1181 m_hDC = ::CreateCompatibleDC(NULL);
1182 m_hOldBitmap = (HBITMAP)SelectObject(m_hDC, m_hBitmap);
1183 IFX_RenderDeviceDriver* pDriver = FX_NEW CGdiDisplayDriver(m_hDC);
1191 if (m_hDC) {
1192 SelectObject(m_hDC, m_hOldBitmap);
1193 DeleteDC(m_hDC);