Lines Matching refs:hDC

1131         HDC hDC = (HDC)ImplSendMessage( pSalData->mpFirstInstance->mhComWnd,  in GetGraphics()  local
1134 if ( hDC ) in GetGraphics()
1136 mpGraphics2->setHDC(hDC); in GetGraphics()
1139 mpGraphics2->mhDefPal = SelectPalette( hDC, pSalData->mhDitherPal, TRUE ); in GetGraphics()
1140 RealizePalette( hDC ); in GetGraphics()
1155 HDC hDC = GetDC( mhWnd ); in GetGraphics() local
1156 if ( hDC ) in GetGraphics()
1159 mpGraphics->setHDC(hDC); in GetGraphics()
1167 mpGraphics->mhDefPal = SelectPalette( hDC, pSalData->mhDitherPal, TRUE ); in GetGraphics()
1168 RealizePalette( hDC ); in GetGraphics()
1734 HDC hDC = (HDC)ImplSendMessage( pSalData->mpFirstInstance->mhComWnd, in ImplSetParentFrame() local
1737 if ( hDC ) in ImplSetParentFrame()
1739 pThis->mpGraphics2->setHDC(hDC); in ImplSetParentFrame()
1742 … pThis->mpGraphics2->mhDefPal = SelectPalette( hDC, pSalData->mhDitherPal, TRUE ); in ImplSetParentFrame()
1743 RealizePalette( hDC ); in ImplSetParentFrame()
1749 SelectObject( hDC, hFont ); in ImplSetParentFrame()
1751 SelectObject( hDC, hPen ); in ImplSetParentFrame()
1753 SelectObject( hDC, hBrush ); in ImplSetParentFrame()
2461 HDC hDC = GetDC( pFrame->mhWnd ); in ImplSalFrameSetInputContext() local
2470 ImplGetLogFontFromFontSelect( hDC, pContext->mpFont, aLogFont, in ImplSalFrameSetInputContext()
2472 ReleaseDC( pFrame->mhWnd, hDC ); in ImplSalFrameSetInputContext()
2796 static void ImplSalUpdateStyleFontA( HDC hDC, const LOGFONTA& rLogFont, Font& rFont ) in ImplSalUpdateStyleFontA() argument
2798 ImplSalLogFontToFontA( hDC, rLogFont, rFont ); in ImplSalUpdateStyleFontA()
2816 static void ImplSalUpdateStyleFontW( HDC hDC, const LOGFONTW& rLogFont, Font& rFont ) in ImplSalUpdateStyleFontW() argument
2818 ImplSalLogFontToFontW( hDC, rLogFont, rFont ); in ImplSalUpdateStyleFontW()
3036 HDC hDC = GetDC( 0 ); in UpdateSettings() local
3043 ImplSalUpdateStyleFontW( hDC, aNonClientMetrics.lfMenuFont, aMenuFont ); in UpdateSettings()
3044 ImplSalUpdateStyleFontW( hDC, aNonClientMetrics.lfCaptionFont, aTitleFont ); in UpdateSettings()
3045 ImplSalUpdateStyleFontW( hDC, aNonClientMetrics.lfSmCaptionFont, aFloatTitleFont ); in UpdateSettings()
3046 ImplSalUpdateStyleFontW( hDC, aNonClientMetrics.lfStatusFont, aHelpFont ); in UpdateSettings()
3047 ImplSalUpdateStyleFontW( hDC, aNonClientMetrics.lfMessageFont, aAppFont ); in UpdateSettings()
3051 ImplSalUpdateStyleFontW( hDC, aLogFont, aIconFont ); in UpdateSettings()
3056 long nDPIY = GetDeviceCaps( hDC, LOGPIXELSY ); in UpdateSettings()
3058 ReleaseDC( 0, hDC ); in UpdateSettings()
3145 HDC hDC = GetWindowDC( mhWnd ); in SnapShot() local
3146 HBITMAP hBmpBitmap = CreateCompatibleBitmap( hDC, nDX, nDY ); in SnapShot()
3150 bRet = BitBlt( hBmpDC, 0, 0, nDX, nDY, hDC, 0, 0, SRCCOPY ) ? TRUE : FALSE; in SnapShot()
4577 HDC hDC; in ImplHandlePalette() local
4617 hDC = pFrame->mpGraphics->getHDC(); in ImplHandlePalette()
4622 hDC = GetDC( hWnd ); in ImplHandlePalette()
4626 hOldPal = SelectPalette( hDC, hPal, TRUE ); in ImplHandlePalette()
4627 nCols = RealizePalette( hDC ); in ImplHandlePalette()
4631 SelectPalette( hDC, hOldPal, TRUE ); in ImplHandlePalette()
4632 ReleaseDC( hWnd, hDC ); in ImplHandlePalette()
4936 clrPrevBkgnd = SetBkColor( pDI->hDC, GetSysColor( COLOR_MENU ) ); in ImplDrawItem()
4939 clrPrevText = SetTextColor( pDI->hDC, GetSysColor( COLOR_GRAYTEXT ) ); in ImplDrawItem()
4941 …clrPrevText = SetTextColor( pDI->hDC, GetSysColor( fSelected ? COLOR_HIGHLIGHTTEXT : COLOR_MENUTEX… in ImplDrawItem()
4945 clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground ); in ImplDrawItem()
4947 clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground ); in ImplDrawItem()
4949 hbrOld = (HBRUSH)SelectObject( pDI->hDC, CreateSolidBrush( GetBkColor( pDI->hDC ) ) ); in ImplDrawItem()
4952 …if(!PatBlt( pDI->hDC, aRect.left, aRect.top, aRect.right-aRect.left, aRect.bottom-aRect.top, PATCO… in ImplDrawItem()
4969 HDC memDC = CreateCompatibleDC( pDI->hDC ); in ImplDrawItem()
4970 HBITMAP memBmp = CreateCompatibleBitmap( pDI->hDC, checkWidth, checkHeight ); in ImplDrawItem()
4973 … BitBlt( pDI->hDC, x, y+(lineHeight-checkHeight)/2, checkWidth, checkHeight, memDC, 0, 0, SRCAND ); in ImplDrawItem()
5001 … HBITMAP hBmp = CreateDIBitmap( pDI->hDC, pBIH, CBM_INIT, pBits, pBI, DIB_RGB_COLORS ); in ImplDrawItem()
5005 DrawStateW( pDI->hDC, (HBRUSH)hbrIcon, (DRAWSTATEPROC)NULL, (LPARAM)hBmp, (WPARAM)0, in ImplDrawItem()
5026 hfntOld = (HFONT) SelectObject(pDI->hDC, (HFONT) CreateFontIndirect( &ncm.lfMenuFont )); in ImplDrawItem()
5030 GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(), in ImplDrawItem()
5033 if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL, in ImplDrawItem()
5043 GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(), in ImplDrawItem()
5046 GetTextMetrics( pDI->hDC, &tm ); in ImplDrawItem()
5050 if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL, in ImplDrawItem()
5058 DeleteObject( SelectObject( pDI->hDC, hbrOld ) ); in ImplDrawItem()
5059 DeleteObject( SelectObject( pDI->hDC, hfntOld) ); in ImplDrawItem()
5060 SetTextColor(pDI->hDC, clrPrevText); in ImplDrawItem()
5061 SetBkColor(pDI->hDC, clrPrevBkgnd); in ImplDrawItem()