Searched refs:hDC (Results 1 - 25 of 44) sorted by relevance

12

/openjdk7/jdk/src/windows/native/sun/windows/
H A Dawt_IconCursor.cpp33 HDC hDC; local
43 hDC = ::GetDC(hW);
44 if (!hDC) {
57 hbmpBitmap = ::CreateDIBSection(hDC, (BITMAPINFO*)&(bmhHeader),
64 ReleaseDC(hW, hDC);
79 hBitmap = CreateDIBitmap(hDC,
87 ::ReleaseDC(hW, hDC);
H A Dawt_Label.h56 virtual MsgRouting WmPaint(HDC hDC);
57 virtual MsgRouting WmPrintClient(HDC hDC, LPARAM flags);
58 virtual MsgRouting WmEraseBkgnd(HDC hDC, BOOL& didErase);
78 void DoPaint(HDC hDC, RECT& r);
H A Dawt_Palette.cpp45 HPALETTE AwtPalette::Select(HDC hDC) argument
50 prevPalette = ::SelectPalette(hDC, logicalPalette, background);
60 void AwtPalette::Realize(HDC hDC) argument
77 ::RealizePalette(hDC);
120 int AwtPalette::FetchPaletteEntries(HDC hDC, PALETTEENTRY* pPalEntries) argument
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, hPalOl
253 HDC hDC; local
[all...]
H A Dawt_Palette.h46 HPALETTE Select(HDC hDC);
48 void Realize(HDC hDC);
58 static int FetchPaletteEntries(HDC hDC, PALETTEENTRY* pPalEntries);
H A Dawt_Canvas.h45 virtual MsgRouting WmEraseBkgnd(HDC hDC, BOOL& didErase);
46 virtual MsgRouting WmPaint(HDC hDC);
H A Dawt_Label.cpp118 void AwtLabel::DoPaint(HDC hDC, RECT& r) argument
140 size = AwtFont::getMFStringSize(hDC, font, text);
141 ::SetTextColor(hDC, GetColor());
144 VERIFY(::FillRect (hDC, &r, GetBackgroundBrush()));
161 AwtComponent::DrawWindowText(hDC, font, text, x, y);
163 AwtComponent::DrawGrayText(hDC, font, text, x, y);
193 MsgRouting AwtLabel::WmEraseBkgnd(HDC hDC, BOOL& didErase) argument
197 ::GetClipBox(hDC, &r);
198 ::FillRect(hDC, &r, this->GetBackgroundBrush());
206 HDC hDC local
224 WmPrintClient(HDC hDC, LPARAM) argument
[all...]
H A Dawt_Win32GraphicsDevice.h48 void ReleaseDC(HDC hDC);
57 HPALETTE SelectPalette(HDC hDC);
58 void RealizePalette(HDC hDC);
73 static HPALETTE SelectPalette(HDC hDC, int deviceIndex);
74 static void RealizePalette(HDC hDC, int deviceIndex);
H A Dawt_Menu.h88 virtual void SendMeasureItem(AwtMenuItem* awtMenuItem, HDC hDC,
92 void MeasureItem(HDC hDC, MEASUREITEMSTRUCT& measureInfo);
93 void MeasureItems(HDC hDC, MEASUREITEMSTRUCT& measureInfo);
H A Dawt_Font.h200 static SIZE DrawStringSize_sub(jstring str, HDC hDC, jobject font,
204 INLINE static SIZE drawMFStringSize(HDC hDC, jobject font, argument
208 return DrawStringSize_sub(str, hDC, font, x, y, TRUE , codePage);
212 INLINE static SIZE getMFStringSize(HDC hDC, jobject font, jstring str, argument
215 return DrawStringSize_sub(str, hDC, font, 0, 0, FALSE, codePage);
219 INLINE static long getMFStringWidth(HDC hDC, jobject font, argument
221 return getMFStringSize(hDC, font, str).cx;
224 INLINE static void drawMFString(HDC hDC, jobject font, jstring str, argument
227 DrawStringSize_sub(str, hDC, font, x, y, TRUE, codePage);
H A Dawt_Win32GraphicsDevice.cpp91 HDC hDC = this->GetDC(); local
92 colorData->bitsperpixel = ::GetDeviceCaps(hDC, BITSPIXEL);
93 this->ReleaseDC(hDC);
134 HDC hDC = CreateDC(mieInfo.szDevice, NULL, NULL, NULL); local
135 if (NULL != hDC) {
136 retCode = hDC;
148 void AwtWin32GraphicsDevice::ReleaseDC(HDC hDC) argument
150 if (hDC != NULL) {
151 ::DeleteDC(hDC);
562 HPALETTE AwtWin32GraphicsDevice::SelectPalette(HDC hDC) argument
571 RealizePalette(HDC hDC) argument
731 SelectPalette(HDC hDC, int deviceIndex) argument
737 RealizePalette(HDC hDC, int deviceIndex) argument
886 HDC hDC = AwtWin32GraphicsDevice::GetDCFromScreen(screen); local
914 HDC hDC = AwtWin32GraphicsDevice::GetDCFromScreen(screen); local
956 HDC hDC = AwtWin32GraphicsDevice::GetDCFromScreen(screen); local
[all...]
H A Dawt_MenuBar.h75 HDC hDC, MEASUREITEMSTRUCT& measureInfo);
77 void MeasureItem(HDC hDC, MEASUREITEMSTRUCT& measureInfo);
H A Dawt_MenuItem.cpp279 HDC hDC = drawInfo.hDC; local
289 size = AwtFont::getMFStringSize(hDC, font, text);
298 size = AwtFont::getMFStringSize(hDC, font, text);
339 VERIFY(::FillRect (hDC, &rect, hbrBack));
343 ::SetBkColor (hDC, crBack);
344 ::SetTextColor (hDC, crText);
346 int nOldBkMode = ::SetBkMode(hDC, OPAQUE);
369 DrawCheck(hDC, checkRect);
373 ::SetBkMode(hDC, TRANSPAREN
442 MeasureSelf(HDC hDC, MEASUREITEMSTRUCT& measureInfo) argument
506 MeasureItem(HDC hDC, MEASUREITEMSTRUCT& measureInfo) argument
557 DrawCheck(HDC hDC, RECT rect) argument
[all...]
H A Dawt_Button.h54 MsgRouting WmPaint(HDC hDC);
H A Dawt_Checkbox.h68 MsgRouting WmPaint(HDC hDC);
H A Dawt_GDIObject.h36 HDC hDC; member in struct:__anon1090
H A Dawt_Button.cpp206 HDC hDC = drawInfo.hDC; local
216 ::FillRect(hDC, &rect, GetBackgroundBrush());
218 ::DrawEdge(hDC, &rect, edgeType, BF_RECT | BF_SOFT);
224 size = AwtFont::getMFStringSize(hDC, font, str);
234 AwtComponent::DrawWindowText(hDC, font, str, x, y);
236 AwtComponent::DrawGrayText(hDC, font, str, x, y);
245 VERIFY(::DrawFocusRect(hDC, &focusRect));
H A Dawt_Win32GraphicsEnv.cpp310 HDC hDC = ::GetDC(hWnd); local
311 jint result = ::GetDeviceCaps(hDC, LOGPIXELSX);
312 ::ReleaseDC(hWnd, hDC);
329 HDC hDC = ::GetDC(hWnd); local
330 jint result = ::GetDeviceCaps(hDC, LOGPIXELSY);
331 ::ReleaseDC(hWnd, hDC);
H A Dawt_Font.cpp436 HDC hDC = ::GetDC(0); local
437 HFONT oldFont = (HFONT)::SelectObject(hDC, hFont);
440 GetTextMetrics(hDC, &tm);
441 oldFont = (HFONT)::SelectObject(hDC, oldFont);
449 VERIFY(::ReleaseDC(0, hDC));
489 HDC hDC = ::GetDC(0); local
490 DASSERT(hDC != NULL);
491 HGDIOBJ oldFont = ::SelectObject(hDC, font->GetHFont());
494 VERIFY(::GetTextMetrics(hDC, &metrics));
497 ::SelectObject(hDC, oldFon
513 HDC hDC = ::GetDC(0); local
574 HDC hDC = ::GetDC(0); local
629 DrawStringSize_sub(jstring str, HDC hDC, jobject font, long x, long y, BOOL draw, UINT codePage) argument
790 HDC hDC = ::GetDC(0); DASSERT(hDC != NULL); local
[all...]
H A Dawt_BitmapUtil.cpp98 HDC hDC; local
103 hDC = ::GetDC(::GetDesktopWindow());
104 if (!hDC) {
116 hTempBitmap = ::CreateDIBSection(hDC, (BITMAPINFO*)&(bitmapInfo),
122 ReleaseDC(::GetDesktopWindow(), hDC); local
144 hBitmap = CreateDIBitmap(hDC,
152 ::ReleaseDC(::GetDesktopWindow(), hDC); local
H A Dawt_Menu.cpp186 HDC hDC, MEASUREITEMSTRUCT& measureInfo)
188 awtMenuItem->MeasureItem(hDC, measureInfo);
254 void AwtMenu::MeasureItems(HDC hDC, MEASUREITEMSTRUCT& measureInfo) argument
266 SendMeasureItem(awtMenuItem, hDC, measureInfo);
272 void AwtMenu::MeasureItem(HDC hDC, MEASUREITEMSTRUCT& measureInfo) argument
277 MeasureSelf(hDC, measureInfo);
281 MeasureItems(hDC, measureInfo);
185 SendMeasureItem(AwtMenuItem* awtMenuItem, HDC hDC, MEASUREITEMSTRUCT& measureInfo) argument
H A Dawt_MenuItem.h139 virtual void MeasureItem(HDC hDC, MEASUREITEMSTRUCT& measureInfo);
140 void MeasureSelf(HDC hDC, MEASUREITEMSTRUCT& measureInfo);
147 void DrawCheck(HDC hDC, RECT rect);
/openjdk7/jdk/src/windows/native/sun/java2d/windows/
H A DGDIWindowSurfaceData.cpp91 HDC oldhDC = info->hDC;
92 // the hDC is NULL for offscreen surfaces - we don't store it
118 info->hDC = NULL;
122 HDC hDC; local
129 hDC = comp->GetDCFromComponent();
130 if (hDC != NULL) {
131 ::SelectObject(hDC, nullbrush);
132 ::SelectObject(hDC, nullpen);
133 ::SelectClipRgn(hDC, (HRGN) NULL);
134 ::SetROP2(hDC, R2_COPYPE
249 GDIWinSD_CheckMonitorArea(GDIWinSDOps *wsdo, SurfaceDataBounds *bounds, HDC hDC) argument
536 GDIWinSD_SimpleClip(JNIEnv *env, GDIWinSDOps *wsdo, SurfaceDataBounds *bounds, HDC hDC) argument
648 HDC hDC; local
753 HDC hDC = GetThreadDC(env, wsdo); local
927 HDC hDC = GetThreadDC(env, wsdo); local
1163 GDIWinSD_ReleaseDC(JNIEnv *env, GDIWinSDOps *wsdo, HDC hDC) argument
[all...]
H A DGDIBlitLoops.cpp78 // to first lock the source and then get the hDC for the destination
79 // surface because the same per-thread hDC will be used for both
80 // and we need to have the correct clip set to the hDC
112 HDC hDC = dstOps->GetDC(env, dstOps, 0, NULL, clip, NULL, 0); local
113 if (hDC == NULL) {
119 dstOps->ReleaseDC(env, dstOps, hDC);
193 SetDIBitsToDevice(hDC, dstx, dsty, width, height,
201 SetDIBitsToDevice(hDC, dstx, dsty+i, width, 1,
210 dstOps->ReleaseDC(env, dstOps, hDC);
/openjdk7/jdk/src/windows/native/sun/java2d/opengl/J2D_GL/
H A Dwglext.h352 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
401 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
403 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
461 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
463 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
536 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
537 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
548 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
549 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
550 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, in
[all...]
/openjdk7/jdk/src/windows/native/sun/awt_common/
H A Dawt_makecube.cpp151 HDC hDC = CreateDC("DISPLAY", NULL, NULL, NULL); local
152 HPALETTE hPal = CreateHalftonePalette(hDC);
158 HBITMAP hBitmap = CreateDIBitmap(hDC, &bmInfo,
160 HDC hMemDC = CreateCompatibleDC(hDC);
161 SelectObject(hDC, hBitmap);
240 HDC hDC = CreateDC("DISPLAY", NULL, NULL, NULL); local
241 HPALETTE hPal = CreateHalftonePalette(hDC);
242 SelectPalette(hDC, hPal, FALSE);
243 RealizePalette(hDC);
245 int n = GetSystemPaletteEntries(hDC,
[all...]

Completed in 78 milliseconds

12