Searched defs:hDC (Results 1 - 25 of 30) 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_GDIObject.h36 HDC hDC; member in struct:__anon1090
H A DDevices.cpp96 BOOL WINAPI clb_fCountMonitors(HMONITOR hMon, HDC hDC, LPRECT rRect, LPARAM lP) argument
111 BOOL WINAPI clb_fCollectMonitors(HMONITOR hMon, HDC hDC, LPRECT rRect, LPARAM lP) argument
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_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_Canvas.cpp153 MsgRouting AwtCanvas::WmEraseBkgnd(HDC hDC, BOOL& didErase) argument
159 ::GetClipBox(hDC, &rc);
160 ::FillRect(hDC, &rc, this->GetBackgroundBrush());
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_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_MenuBar.cpp137 HDC hDC, MEASUREITEMSTRUCT& measureInfo)
139 awtMenuItem->MeasureItem(hDC, measureInfo);
178 void AwtMenuBar::MeasureItem(HDC hDC, argument
182 AwtMenu::MeasureItem(hDC, measureInfo);
136 SendMeasureItem(AwtMenuItem* awtMenuItem, HDC hDC, MEASUREITEMSTRUCT& measureInfo) argument
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_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_Checkbox.cpp219 HDC hDC = drawInfo.hDC; local
227 size = AwtFont::getMFStringSize(hDC, font, str);
244 VERIFY(::FillRect (hDC, &rect, GetBackgroundBrush()));
255 ::DrawFrameControl(hDC, &boxRect, DFC_BUTTON, nState);
270 AwtComponent::DrawWindowText(hDC, font, str, x, y);
272 AwtComponent::DrawGrayText(hDC, font, str, x, y);
293 VERIFY(::DrawFocusRect(hDC, &focusRect));
298 VERIFY(::DrawFocusRect(hDC, &focusRect));
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_TextArea.cpp530 HDC hDC = ::GetDC(hWnd); local
531 DASSERT(hDC != NULL);
532 VERIFY(::GetTextMetrics(hDC, &tm));
533 VERIFY(::ReleaseDC(hWnd, hDC));
H A Dawt_Choice.cpp354 HDC hDC = ::GetDC(GetHWnd()); local
355 DASSERT(hDC != NULL);
359 VERIFY(::SelectObject(hDC, hFont) != NULL);
360 VERIFY(::GetTextMetrics(hDC, &tm));
362 VERIFY(::ReleaseDC(GetHWnd(), hDC) != 0);
H A Dawt_List.cpp200 HDC hDC = ::GetDC(GetHWnd()); local
203 VERIFY(::SelectObject(hDC, hFont) != NULL);
204 VERIFY(::GetTextMetrics(hDC, &tm));
206 ::ReleaseDC(GetHWnd(), hDC); local
366 HDC hDC = ::GetDC(GetHWnd());
379 SIZE size = AwtFont::getMFStringSize( hDC, font, jstr );
386 ::ReleaseDC(GetHWnd(), hDC); local
464 AwtList::WmCtlColor(HDC hDC, HWND hCtrl, UINT ctlColor, HBRUSH& retBrush) argument
468 ::SetBkColor(hDC, GetBackgroundColor());
469 ::SetTextColor(hDC, GetColo
506 WmPrint(HDC hDC, LPARAM flags) argument
[all...]
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_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_Component.h327 static void DrawWindowText(HDC hDC, jobject font, jstring text,
329 static void DrawGrayText(HDC hDC, jobject font, jstring text,
501 virtual MsgRouting WmEraseBkgnd(HDC hDC, BOOL& didErase) argument
506 virtual MsgRouting WmPaint(HDC hDC);
514 virtual MsgRouting WmCtlColor(HDC hDC, HWND hCtrl,
576 virtual MsgRouting WmPrint(HDC hDC, LPARAM flags);
577 virtual MsgRouting WmPrintClient(HDC hDC, LPARAM flags);
892 HDC hDC; member in class:DCItem
902 void AddDC(HDC hDC, HWND hWnd);
904 DCItem *RemoveDC(HDC hDC);
[all...]
H A Dawt_Frame.cpp1063 HDC hDC = ::GetDC(hWnd); local
1064 DASSERT(hDC != NULL);
1065 awtMenubar->MeasureItem(hDC, measureInfo);
1066 VERIFY(::ReleaseDC(hWnd, hDC));
/openjdk7/jdk/src/windows/native/sun/java2d/windows/
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);
H A DGDIWindowSurfaceData.h144 * threads in a state of confusion. For example, the hDC field was
198 HDC hDC; member in struct:__anon1083
H A DGDIRenderer.cpp890 HDC hDC = wsdo->GetDC(env, wsdo, 0, NULL, NULL, NULL, 0); local
891 if (hDC == NULL) {
898 VERIFY(::ScrollDC(hDC, dx, dy, &r, NULL, rgnUpdate, NULL));
922 wsdo->ReleaseDC(env, wsdo, hDC);
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...]
/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 1136 milliseconds

12