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()
4574 HDC hDC; in ImplHandlePalette() local
4614 hDC = pFrame->mpGraphics->getHDC(); in ImplHandlePalette()
4619 hDC = GetDC( hWnd ); in ImplHandlePalette()
4623 hOldPal = SelectPalette( hDC, hPal, TRUE ); in ImplHandlePalette()
4624 nCols = RealizePalette( hDC ); in ImplHandlePalette()
4628 SelectPalette( hDC, hOldPal, TRUE ); in ImplHandlePalette()
4629 ReleaseDC( hWnd, hDC ); in ImplHandlePalette()
4933 clrPrevBkgnd = SetBkColor( pDI->hDC, GetSysColor( COLOR_MENU ) ); in ImplDrawItem()
4936 clrPrevText = SetTextColor( pDI->hDC, GetSysColor( COLOR_GRAYTEXT ) ); in ImplDrawItem()
4938 …clrPrevText = SetTextColor( pDI->hDC, GetSysColor( fSelected ? COLOR_HIGHLIGHTTEXT : COLOR_MENUTEX… in ImplDrawItem()
4942 clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground ); in ImplDrawItem()
4944 clrPrevBkgnd = SetBkColor( pDI->hDC, colBackground ); in ImplDrawItem()
4946 hbrOld = (HBRUSH)SelectObject( pDI->hDC, CreateSolidBrush( GetBkColor( pDI->hDC ) ) ); in ImplDrawItem()
4949 …if(!PatBlt( pDI->hDC, aRect.left, aRect.top, aRect.right-aRect.left, aRect.bottom-aRect.top, PATCO… in ImplDrawItem()
4966 HDC memDC = CreateCompatibleDC( pDI->hDC ); in ImplDrawItem()
4967 HBITMAP memBmp = CreateCompatibleBitmap( pDI->hDC, checkWidth, checkHeight ); in ImplDrawItem()
4970 … BitBlt( pDI->hDC, x, y+(lineHeight-checkHeight)/2, checkWidth, checkHeight, memDC, 0, 0, SRCAND ); in ImplDrawItem()
4998 … HBITMAP hBmp = CreateDIBitmap( pDI->hDC, pBIH, CBM_INIT, pBits, pBI, DIB_RGB_COLORS ); in ImplDrawItem()
5002 DrawStateW( pDI->hDC, (HBRUSH)hbrIcon, (DRAWSTATEPROC)NULL, (LPARAM)hBmp, (WPARAM)0, in ImplDrawItem()
5023 hfntOld = (HFONT) SelectObject(pDI->hDC, (HFONT) CreateFontIndirect( &ncm.lfMenuFont )); in ImplDrawItem()
5027 GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(), in ImplDrawItem()
5030 if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL, in ImplDrawItem()
5040 GetTextExtentPoint32W( pDI->hDC, (LPWSTR) aStr.GetBuffer(), in ImplDrawItem()
5043 GetTextMetrics( pDI->hDC, &tm ); in ImplDrawItem()
5047 if(!DrawStateW( pDI->hDC, (HBRUSH)NULL, (DRAWSTATEPROC)NULL, in ImplDrawItem()
5055 DeleteObject( SelectObject( pDI->hDC, hbrOld ) ); in ImplDrawItem()
5056 DeleteObject( SelectObject( pDI->hDC, hfntOld) ); in ImplDrawItem()
5057 SetTextColor(pDI->hDC, clrPrevText); in ImplDrawItem()
5058 SetBkColor(pDI->hDC, clrPrevBkgnd); in ImplDrawItem()