Lines Matching defs:hDC
45 HPALETTE AwtPalette::Select(HDC hDC)
50 prevPalette = ::SelectPalette(hDC, logicalPalette, background);
60 void AwtPalette::Realize(HDC hDC)
77 ::RealizePalette(hDC);
120 int AwtPalette::FetchPaletteEntries(HDC hDC, PALETTEENTRY* pPalEntries)
127 numEntries = ::GetSystemPaletteEntries(hDC, 0, 256, pPalEntries);
156 hPalOld = ::SelectPalette(hDC, hPal, 1);
161 ::RealizePalette(hDC);
165 rgb = ::GetNearestColor(hDC, PALETTEINDEX(iEntry));
171 ::SelectPalette(hDC, hPalOld, 0 );
173 ::RealizePalette(hDC);
253 HDC hDC;
255 hDC = device->GetDC();
256 if (!hDC) {
259 bitsPerPixel = ::GetDeviceCaps(hDC, BITSPIXEL);
260 device->ReleaseDC(hDC);
265 hDC = device->GetDC();
266 numEntries = FetchPaletteEntries(hDC, pe);
268 device->ReleaseDC(hDC);