Home
last modified time | relevance | path

Searched refs:hDC (Results 1 – 25 of 38) sorted by relevance

12

/trunk/main/vcl/win/source/gdi/
H A Dsalnativewidgets-luna.cxx342 sal_Bool ImplDrawTheme( HTHEME hTheme, HDC hDC, int iPart, int iState, RECT rc, const OUString& aSt… in ImplDrawTheme() argument
344 HRESULT hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawTheme()
349 hr = vsAPI.GetThemeBackgroundContentRect( hTheme, hDC, iPart, iState, &rc, &rcContent); in ImplDrawTheme()
350 hr = vsAPI.DrawThemeText( hTheme, hDC, iPart, iState, in ImplDrawTheme()
359 Rectangle ImplGetThemeRect( HTHEME hTheme, HDC hDC, int iPart, int iState, const Rectangle& aRect, … in ImplGetThemeRect() argument
367 …HRESULT hr = vsAPI.GetThemePartSize( hTheme, hDC, iPart, iState, NULL, eTS, &aSz ); // TS_TRUE ret… in ImplGetThemeRect()
437 sal_Bool ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc, in ImplDrawNativeControl() argument
474 hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
488 hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
502 hr = vsAPI.DrawThemeBackground( hTheme, hDC, iPart, iState, &rc, 0); in ImplDrawNativeControl()
[all …]
H A Dsalprn.cxx1362 HDC hDC = 0; in ImplCreateICW_WithCatch() local
1364 hDC = CreateICW( pDriver, pDevice, 0, pDevMode ); in ImplCreateICW_WithCatch()
1366 return hDC; in ImplCreateICW_WithCatch()
1373 HDC hDC = 0; in ImplCreateICA_WithCatch() local
1375 hDC = CreateICA( pDriver, pDevice, 0, pDevMode ); in ImplCreateICA_WithCatch()
1377 return hDC; in ImplCreateICA_WithCatch()
1383 HDC hDC = 0; in ImplCreateSalPrnIC() local
1401 hDC = ImplCreateICW_WithCatch( reinterpret_cast< LPWSTR >(pDriverName), in ImplCreateSalPrnIC()
1434 hDC = ImplCreateICA_WithCatch( lpszDriverName, in ImplCreateSalPrnIC()
1438 return hDC; in ImplCreateSalPrnIC()
[all …]
H A Dsalvd.cxx39 static HBITMAP ImplCreateVirDevBitmap( HDC hDC, long nDX, long nDY, in ImplCreateVirDevBitmap() argument
58 aBitmapInfo.bmiHeader.biBitCount = (WORD)GetDeviceCaps( hDC, in ImplCreateVirDevBitmap()
68 hBitmap = CreateDIBSection( hDC, &aBitmapInfo, in ImplCreateVirDevBitmap()
85 HDC hDC = NULL; in CreateVirtualDevice() local
91 hDC = pData->hDC; in CreateVirtualDevice()
93 bOk = (hDC != NULL); in CreateVirtualDevice()
97 hDC = CreateCompatibleDC( pGraphics->getHDC() ); in CreateVirtualDevice()
98 if( !hDC ) in CreateVirtualDevice()
111 bOk = (hDC != NULL); in CreateVirtualDevice()
120 pVirGraphics->setHDC(hDC); in CreateVirtualDevice()
[all …]
H A Dsalgdi2.cxx344 void ImplDrawBitmap( HDC hDC, in ImplDrawBitmap() argument
348 if( hDC ) in ImplDrawBitmap()
370 const int nOldStretchMode = SetStretchBltMode( hDC, STRETCH_DELETESCANS ); in ImplDrawBitmap()
372 StretchDIBits( hDC, in ImplDrawBitmap()
380 SetStretchBltMode( hDC, nOldStretchMode ); in ImplDrawBitmap()
391 nOldBkColor = SetBkColor( hDC, RGB( 0xFF, 0xFF, 0xFF ) ); in ImplDrawBitmap()
392 nOldTextColor = ::SetTextColor( hDC, RGB( 0x00, 0x00, 0x00 ) ); in ImplDrawBitmap()
398 BitBlt( hDC, in ImplDrawBitmap()
407 const int nOldStretchMode = SetStretchBltMode( hDC, STRETCH_DELETESCANS ); in ImplDrawBitmap()
409 StretchBlt( hDC, in ImplDrawBitmap()
[all …]
H A Dsalgdi3.cxx267 RawFontData::RawFontData( HDC hDC, DWORD nTableTag ) in RawFontData() argument
272 mnByteCount = ::GetFontData( hDC, nTableTag, 0, NULL, 0 ); in RawFontData()
293 const DWORD nFDGot = ::GetFontData( hDC, nTableTag, nRawDataOfs, in RawFontData()
491 inline WinGlyphFallbackSubstititution::WinGlyphFallbackSubstititution( HDC hDC ) in WinGlyphFallbackSubstititution() argument
492 : mhDC( hDC ) in WinGlyphFallbackSubstititution()
1019 void ImplSalLogFontToFontA( HDC hDC, const LOGFONTA& rLogFont, Font& rFont ) in ImplSalLogFontToFontA() argument
1033 long nDPIY = GetDeviceCaps( hDC, LOGPIXELSY ); in ImplSalLogFontToFontA()
1058 void ImplSalLogFontToFontW( HDC hDC, const LOGFONTW& rLogFont, Font& rFont ) in ImplSalLogFontToFontW() argument
1072 long nDPIY = GetDeviceCaps( hDC, LOGPIXELSY ); in ImplSalLogFontToFontW()
1161 void ImplWinFontData::UpdateFromHDC( HDC hDC ) const in UpdateFromHDC()
[all …]
H A Dwntgdi.cxx39 BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 ) in WIN_Rectangle() argument
41 return Rectangle( hDC, X1, Y1, X2, Y2 ); in WIN_Rectangle()
49 BOOL WINAPI WIN_Polygon( HDC hDC, CONST POINT * ppt, int ncnt ) in WIN_Polygon() argument
51 return Polygon( hDC, ppt, ncnt ); in WIN_Polygon()
59 BOOL WINAPI WIN_PolyPolygon( HDC hDC, CONST POINT * ppt, LPINT npcnt, int ncnt ) in WIN_PolyPolygon() argument
61 return PolyPolygon( hDC, ppt, npcnt, ncnt ); in WIN_PolyPolygon()
H A Dsalbmp.cxx639 HDC hDC = pGraphics->getHDC(); in Create() local
650 SetDIBits( hDC, hNewDDB, 0, pBIH->biHeight, pBits, pBI, DIB_RGB_COLORS ); in Create()
653 … hNewDDB = CreateDIBitmap( hDC, (PBITMAPINFOHEADER) pBI, CBM_INIT, pBits, pBI, DIB_RGB_COLORS ); in Create()
688 HDC hDC = GetDC( 0 ); in Create() local
696 hOldPal = SelectPalette( hDC, pSalData->mhDitherPal, TRUE ); in Create()
697 RealizePalette( hDC ); in Create()
700 if( GetDIBits( hDC, rSalBmp.mhDDB, 0, nLines, pBits, pBI, DIB_RGB_COLORS ) == nLines ) in Create()
715 SelectPalette( hDC, hOldPal, TRUE ); in Create()
717 ReleaseDC( 0, hDC ); in Create()
H A Dsalgdi.cxx176 HDC hDC = GetDC( 0 ); in ImplInitSalGDI() local
177 int nBitsPixel = GetDeviceCaps( hDC, BITSPIXEL ); in ImplInitSalGDI()
178 int nPlanes = GetDeviceCaps( hDC, PLANES ); in ImplInitSalGDI()
179 int nRasterCaps = GetDeviceCaps( hDC, RASTERCAPS ); in ImplInitSalGDI()
185 HDC hMemDC = ::CreateCompatibleDC( hDC ); in ImplInitSalGDI()
186 HBITMAP hMemBmp = ::CreateCompatibleBitmap( hDC, 8, 8 ); in ImplInitSalGDI()
317 ReleaseDC( 0, hDC ); in ImplInitSalGDI()
561 HDC hDC = GetDC( 0 ); in ImplGetCachedDC() local
564 pC->mhDC = CreateCompatibleDC( hDC ); in ImplGetCachedDC()
572 pC->mhSelBmp = CreateCompatibleBitmap( hDC, CACHED_HDC_DEFEXT, CACHED_HDC_DEFEXT ); in ImplGetCachedDC()
[all …]
H A Dwinlayout.cxx214 WinLayout::WinLayout( HDC hDC, const ImplWinFontData& rWFD, ImplWinFontEntry& rWFE ) in WinLayout() argument
215 : mhDC( hDC ), in WinLayout()
216 mhFont( (HFONT)::GetCurrentObject(hDC,OBJ_FONT) ), in WinLayout()
256 SimpleWinLayout::SimpleWinLayout( HDC hDC, BYTE nCharSet, in SimpleWinLayout() argument
258 : WinLayout( hDC, rWinFontData, rWinFontEntry ), in SimpleWinLayout()
1235 UniscribeLayout::UniscribeLayout( HDC hDC, argument
1237 : WinLayout( hDC, rWinFontData, rWinFontEntry ),
2816 GraphiteWinLayout(HDC hDC, const ImplWinFontData& rWFD, ImplWinFontEntry& rWFE) throw();
2818 static bool IsGraphiteEnabledFont(HDC hDC) throw();
2846 bool GraphiteWinLayout::IsGraphiteEnabledFont(HDC hDC) throw() argument
[all …]
/trunk/main/embedserv/source/embed/
H A Dtracker.cxx103 HDC hDC,LPRECT lpRect,SIZE size, in DrawDragRect() argument
152 SelectClipRgn(hDC,rgnLast); in DrawDragRect()
153 GetClipBox(hDC,&rect); in DrawDragRect()
154 hBrushOld = (HBRUSH)SelectObject(hDC,(HGDIOBJ)hBrushLast); in DrawDragRect()
155 PatBlt(hDC,rect.left,rect.top,(rect.right-rect.left),(rect.bottom-rect.top),PATINVERT); in DrawDragRect()
157 SelectObject(hDC,(HGDIOBJ)hBrushOld); in DrawDragRect()
162 SelectClipRgn(hDC,rgnUpdate); in DrawDragRect()
164 GetClipBox(hDC,&rect); in DrawDragRect()
165 hBrushOld = (HBRUSH) SelectObject(hDC,(HGDIOBJ) hBrush); in DrawDragRect()
166 PatBlt(hDC,rect.left, rect.top,(rect.right-rect.left),(rect.bottom-rect.top), PATINVERT); in DrawDragRect()
[all …]
H A Dsyswinwrapper.cxx56 void DrawShading(LPRECT prc, HDC hDC, UINT cWidth);
402 HDC hDC; in HatchWndProc() local
415 hDC=BeginPaint(hWnd,&ps); in HatchWndProc()
417 phw->m_aTracker.Draw(hDC); in HatchWndProc()
/trunk/main/vcl/os2/source/gdi/
H A Dsalvd.cxx52 HBITMAP ImplCreateVirDevBitmap( HDC hDC, HPS hPS, long nDX, long nDY, in ImplCreateVirDevBitmap() argument
58 DevQueryCaps( hDC, CAPS_COLOR_BITCOUNT, 1, &nDevBitCount ); in ImplCreateVirDevBitmap()
63 DevQueryCaps( hDC, CAPS_COLOR_PLANES, 1, &nPlanes ); in ImplCreateVirDevBitmap()
91 HDC hDC = DevOpenDC( hAB, OD_MEMORY, (PSZ)"*", 5, (PDEVOPENDATA)&aDevOpenStruc, 0 ); in CreateVirtualDevice() local
92 if ( !hDC ) in CreateVirtualDevice()
98 HPS hPS = Ft2CreatePS( hAB, hDC, &size, GPIT_MICRO | GPIA_ASSOC | PU_PELS ); in CreateVirtualDevice()
101 DevCloseDC( hDC ); in CreateVirtualDevice()
106 HBITMAP hBmp = ImplCreateVirDevBitmap( hDC, hPS, nDX, nDY, nBitCount ); in CreateVirtualDevice()
110 DevCloseDC( hDC ); in CreateVirtualDevice()
118 pVirGraphics->mhDC = hDC; in CreateVirtualDevice()
[all …]
H A Dsalprn.cxx466 static sal_Bool ImplIsDriverDJPEnabled( HDC hDC ) in ImplIsDriverDJPEnabled() argument
480 rc = DevEscape( hDC, in ImplIsDriverDJPEnabled()
490 rc = DevEscape( hDC, in ImplIsDriverDJPEnabled()
500 rc = DevEscape( hDC, in ImplIsDriverDJPEnabled()
1045 HDC hDC = DevOpenDC( pSalData->mhAB, OD_INFO, "*", in ImplSalCreateInfoPrn() local
1047 if ( !hDC ) in ImplSalCreateInfoPrn()
1054 HPS hPS = Ft2CreatePS( pSalData->mhAB, hDC, &sizel, GPIA_ASSOC | GPIT_MICRO | PU_PELS ); in ImplSalCreateInfoPrn()
1057 DevCloseDC( hDC ); in ImplSalCreateInfoPrn()
1061 rDC = hDC; in ImplSalCreateInfoPrn()
1260 HDC hDC; in Setup() local
[all …]
/trunk/main/fpicker/source/win32/filepicker/
H A Ddibpreview.cxx243 void SAL_CALL CDIBPreview::onPaint(HWND hWnd, HDC hDC) in onPaint() argument
266 SetStretchBltMode(hDC, COLORONCOLOR); in onPaint()
276 hDC, nX, nY, cxDib, cyDib, in onPaint()
292 FillRect(hDC,&rc,(HBRUSH)(COLOR_INACTIVEBORDER + 1)); in onPaint()
299 FillRect(hDC,&rc,(HBRUSH)(COLOR_INACTIVEBORDER + 1)); in onPaint()
309 FillRect(hDC,&rc,(HBRUSH)(COLOR_INACTIVEBORDER + 1)); in onPaint()
316 FillRect(hDC,&rc,(HBRUSH)(COLOR_INACTIVEBORDER + 1)); in onPaint()
323 FillRect(hDC,&rc,(HBRUSH)(COLOR_INACTIVEBORDER + 1)); in onPaint()
378 HDC hDC; in WndProc() local
381 hDC = BeginPaint(hWnd,&ps); in WndProc()
[all …]
H A DPreviewCtrl.cxx93 sal_Int32 Himetric2Pixel( HDC hDC, sal_Int32 hmSize, sal_Int32 nIndex ) in Himetric2Pixel() argument
95 return MulDiv( hmSize, GetDeviceCaps( hDC, nIndex), HIMETRIC_INCH ); in Himetric2Pixel()
449 void SAL_CALL CFilePreview::onPaint( HWND hWnd, HDC hDC ) in onPaint() argument
465 int cxPicPIXEL = Himetric2Pixel( hDC, cxPicHIMETRIC, LOGPIXELSX ); in onPaint()
466 int cyPicPIXEL = Himetric2Pixel( hDC, cyPicHIMETRIC, LOGPIXELSY ); in onPaint()
481 hDC, in onPaint()
584 HDC hDC; in WndProc() local
587 hDC = BeginPaint( hWnd, &ps ); in WndProc()
588 s_FilePreviewInst->onPaint( hWnd, hDC ); in WndProc()
/trunk/main/canvas/source/cairo/
H A Dcairo_win32_cairo.cxx82 Win32Surface::Win32Surface( HDC hDC, int x, int y) : in Win32Surface() argument
84 cairo_win32_surface_create(hDC), in Win32Surface()
113 HDC hDC = CreateCompatibleDC(NULL); in Win32Surface() local
115 OSL_TRACE ("Surface::Surface(): Selecting bitmap %p into DC %p", rBmpData.pDDB, hDC); in Win32Surface()
116 hOrigBitmap = SelectObject( hDC, (HANDLE)rBmpData.pDDB ); in Win32Surface()
120 cairo_win32_surface_create(hDC), in Win32Surface()
205 aSystemGraphicsData.hDC = cairo_win32_surface_get_dc( mpSurface.get() ); in createVirtualDevice()
250 if (aSysData.hDC) in createSurface()
251 surf = SurfaceSharedPtr(new Win32Surface((HDC) aSysData.hDC, x, y)); in createSurface()
H A Dcairo_os2_cairo.cxx121 HDC hDC = CreateCompatibleDC(NULL); in Os2Surface()
123 OSL_TRACE ("Surface::Surface(): Selecting bitmap %p into DC %p", rBmpData.pDDB, hDC); in Os2Surface()
124 hOrigBitmap = SelectObject( hDC, (HANDLE)rBmpData.pDDB ); in Os2Surface()
128 cairo_win32_surface_create(hDC), in Os2Surface()
/trunk/main/vcl/win/source/window/
H A Dsalframe.cxx1127 HDC hDC = (HDC)ImplSendMessage( pSalData->mpFirstInstance->mhComWnd, in GetGraphics() local
1130 if ( hDC ) in GetGraphics()
1132 mpGraphics2->setHDC(hDC); in GetGraphics()
1135 mpGraphics2->mhDefPal = SelectPalette( hDC, pSalData->mhDitherPal, TRUE ); in GetGraphics()
1136 RealizePalette( hDC ); in GetGraphics()
1151 HDC hDC = GetDC( mhWnd ); in GetGraphics() local
1152 if ( hDC ) in GetGraphics()
1155 mpGraphics->setHDC(hDC); in GetGraphics()
1163 mpGraphics->mhDefPal = SelectPalette( hDC, pSalData->mhDitherPal, TRUE ); in GetGraphics()
1164 RealizePalette( hDC ); in GetGraphics()
[all …]
/trunk/main/sfx2/source/appl/
H A Dshutdowniconw32.cxx719 clrPrevBkgnd = SetBkColor( lpdis->hDC, GetSysColor(COLOR_MENU) ); in OnDrawItem()
722 clrPrevText = SetTextColor( lpdis->hDC, GetSysColor( COLOR_GRAYTEXT ) ); in OnDrawItem()
724 …clrPrevText = SetTextColor( lpdis->hDC, GetSysColor( fSelected ? COLOR_HIGHLIGHTTEXT : COLOR_MENUT… in OnDrawItem()
727 clrPrevBkgnd = SetBkColor( lpdis->hDC, GetSysColor(COLOR_HIGHLIGHT) ); in OnDrawItem()
729 clrPrevBkgnd = SetBkColor( lpdis->hDC, GetSysColor(COLOR_MENU) ); in OnDrawItem()
731 hbrOld = (HBRUSH)SelectObject( lpdis->hDC, CreateSolidBrush( GetBkColor( lpdis->hDC ) ) ); in OnDrawItem()
734 …PatBlt(lpdis->hDC, aRect.left, aRect.top, aRect.right-aRect.left, aRect.bottom-aRect.top, PATCOPY); in OnDrawItem()
765 …DrawStateW( lpdis->hDC, (HBRUSH)hbrIcon, (DRAWSTATEPROC)NULL, (LPARAM)hIcon, (WPARAM)0, x, y+(heig… in OnDrawItem()
782 hfntOld = (HFONT) SelectObject(lpdis->hDC, (HFONT) CreateFontIndirect( &ncm.lfMenuFont )); in OnDrawItem()
786 …GetTextExtentPointW( lpdis->hDC, reinterpret_cast<LPCWSTR>(pMyItem->text.getStr()), pMyItem->text.… in OnDrawItem()
[all …]
/trunk/main/vcl/inc/win/
H A Dwincomp.hxx37 inline HPEN SelectPen( HDC hDC, HPEN hPen ) in SelectPen() argument
39 return (HPEN)SelectObject( hDC, (HGDIOBJ)hPen ); in SelectPen()
52 inline HBRUSH SelectBrush( HDC hDC, HBRUSH hBrush ) in SelectBrush() argument
54 return (HBRUSH)SelectObject( hDC, (HGDIOBJ)hBrush ); in SelectBrush()
67 inline HFONT SelectFont( HDC hDC, HFONT hFont ) in SelectFont() argument
69 return (HFONT)SelectObject( hDC, (HGDIOBJ)hFont ); in SelectFont()
82 inline HBITMAP SelectBitmap( HDC hDC, HBITMAP hBitmap ) in SelectBitmap() argument
84 return (HBITMAP)SelectObject( hDC, (HGDIOBJ)hBitmap ); in SelectBitmap()
/trunk/main/canvas/source/directx/
H A Ddx_devicehelper.cxx83 HDC hDC = getHDC(); in getPhysicalResolution() local
84 ENSURE_OR_THROW( hDC, in getPhysicalResolution()
87 const int nHorzRes( GetDeviceCaps( hDC, in getPhysicalResolution()
89 const int nVertRes( GetDeviceCaps( hDC, in getPhysicalResolution()
101 HDC hDC=getHDC(); in getPhysicalSize() local
102 ENSURE_OR_THROW( hDC, in getPhysicalSize()
105 const int nHorzSize( GetDeviceCaps( hDC, in getPhysicalSize()
107 const int nVertSize( GetDeviceCaps( hDC, in getPhysicalSize()
H A Ddx_canvas.cxx104 if( !pSysData || !pSysData->hDC ) in initialize()
111 maDeviceHelper.init( pSysData->hDC, in initialize()
117 Gdiplus::Graphics::FromHDC(pSysData->hDC)))); in initialize()
164 if( !pSysData || !pSysData->hDC ) in initialize()
171 maDeviceHelper.init( pSysData->hDC, in initialize()
179 hBmp=(HBITMAP)GetCurrentObject(pSysData->hDC, OBJ_BITMAP); in initialize()
180 if( !hBmp || GetObjectType(pSysData->hDC) != OBJ_MEMDC ) in initialize()
/trunk/main/slideshow/source/engine/OGLTrans/
H A DOGLTrans_TransitionerImpl.cxx216 HDC hDC; member
604 GLWin.hDC = GetDC(GLWin.hWnd); in createWindow()
638 int WindowPix = ChoosePixelFormat(GLWin.hDC,&PixelFormatFront); in createWindow()
639 SetPixelFormat(GLWin.hDC,WindowPix,&PixelFormatFront); in createWindow()
640 GLWin.hRC = wglCreateContext(GLWin.hDC); in createWindow()
641 wglMakeCurrent(GLWin.hDC,GLWin.hRC); in createWindow()
694 SwapBuffers(GLWin.hDC); in createWindow()
1133 wglMakeCurrent(GLWin.hDC,GLWin.hRC); in createWindow()
1149 SwapBuffers(GLWin.hDC); in createWindow()
1190 wglMakeCurrent( GLWin.hDC, 0 ); // kill Device Context in createWindow()
[all …]
/trunk/main/tools/inc/tools/
H A Dpostsys.h231 BOOL WINAPI WIN_Rectangle( HDC hDC, int X1, int Y1, int X2, int Y2 );
232 BOOL WINAPI WIN_Polygon( HDC hDC, CONST POINT * ppt, int ncnt );
233 BOOL WINAPI WIN_PolyPolygon( HDC hDC, CONST POINT * ppt, LPINT npcnt, int ncnt );
/trunk/main/vcl/os2/source/app/
H A Dsalinfo.cxx80 HDC hDC;
81 if( hDC = WinQueryWindowDC(HWND_DESKTOP) )
84 DevQueryCaps(hDC, CAPS_COLOR_BITCOUNT, CAPS_COLOR_BITCOUNT, &bitCount);

12