Home
last modified time | relevance | path

Searched refs:hdc (Results 1 – 25 of 516) sorted by relevance

12345678910>>...21

/reactos/modules/rostests/winetests/gdi32/
H A Dpath.c40 HDC hdc; in test_path_state() local
57 BeginPath( hdc ); in test_path_state()
84 SaveDC( hdc ); in test_path_state()
98 SaveDC( hdc ); in test_path_state()
340 EndPath(hdc); in test_widenpath()
366 EndPath(hdc); in test_widenpath()
499 EndPath(hdc); in test_arcto()
544 EndPath(hdc); in test_anglearc()
686 EndPath(hdc); in test_polydraw()
719 EndPath(hdc); in test_closefigure()
[all …]
H A Dmapping.c81 HDC hdc; in test_world_transform() local
138 DeleteDC(hdc); in test_world_transform()
237 DeleteDC(hdc); in test_world_transform()
247 HDC hdc; in test_dc_layout() local
278 DeleteDC(hdc); in test_dc_layout()
380 DeleteDC(hdc); in test_dc_layout()
386 HDC hdc = GetDC(0); in test_modify_world_transform() local
401 ReleaseDC(0, hdc); in test_modify_world_transform()
468 HDC hdc = GetDC(0); in test_isotropic_mapping() local
501 ReleaseDC(0, hdc); in test_isotropic_mapping()
[all …]
H A Ddc.c107 DeleteDC( hdc ); in test_dc_values()
113 HDC hdc; in test_savedc_2() local
183 ok(hdc != NULL, "CreateDC rets %p\n", hdc); in test_savedc()
248 DeleteDC(hdc); in test_savedc()
564 ok(hdc != NULL, "CreateCompatibleDC returned %p\n", hdc); in test_CreateCompatibleDC()
622 hdc = GetDC(0); in test_DC_bitmap()
623 ok( hdc != NULL, "CreateDC rets %p\n", hdc); in test_DC_bitmap()
859 HDC hdc; in test_boundsrect() local
1251 HDC hdc = 0; in create_printer_dc() local
1295 return hdc; in create_printer_dc()
[all …]
H A Ddib.c1556 reset_bounds( hdc ); in draw_graphics()
1569 SetROP2(hdc, i); in draw_graphics()
1956 PaintRgn(hdc, hrgn); in draw_graphics()
1996 BitBlt( hdc, 20, 20, 100, 100, hdc, 10, 10, SRCCOPY ); in draw_graphics()
2003 BitBlt( hdc, 10, 10, 100, 100, hdc, 20, 20, SRCCOPY ); in draw_graphics()
2013 BitBlt( hdc, 20, 10, 100, 100, hdc, 10, 20, SRCCOPY ); in draw_graphics()
2020 BitBlt( hdc, 10, 20, 100, 100, hdc, 20, 10, SRCCOPY ); in draw_graphics()
2030 BitBlt( hdc, 20, 20, 100, 100, hdc, 10, 10, PATPAINT ); in draw_graphics()
2037 BitBlt( hdc, 10, 10, 100, 100, hdc, 20, 20, PATPAINT ); in draw_graphics()
2044 BitBlt( hdc, 20, 10, 100, 100, hdc, 10, 20, PATPAINT ); in draw_graphics()
[all …]
/reactos/modules/rostests/apitests/win32nt/ntgdi/
H A DNtGdiRestoreDC.c18 SetSpecialDCState(HDC hdc) in SetSpecialDCState() argument
22 SelectObject(hdc, hpen); in SetSpecialDCState()
24 SelectObject(hdc, hfont); in SetSpecialDCState()
25 SelectObject(hdc, hrgn); in SetSpecialDCState()
45 SetSpecialDCState2(HDC hdc) in SetSpecialDCState2() argument
120 NtGdiSaveDC(hdc); in Test_SaveRestore()
145 HDC hdc; in START_TEST() local
180 DeleteDC(hdc); in START_TEST()
183 hdc = GetDC(0); in START_TEST()
186 ReleaseDC(0, hdc); in START_TEST()
[all …]
H A DNtGdiSaveDC.c13 HDC hdc, hdc2; in START_TEST() local
22 TEST(hdc != NULL); in START_TEST()
25 DeleteDC(hdc); in START_TEST()
28 hdc = GetDC(0); in START_TEST()
29 TEST(hdc != NULL); in START_TEST()
32 ReleaseDC(0, hdc); in START_TEST()
36 TEST(hdc != NULL); in START_TEST()
39 DeleteDC(hdc); in START_TEST()
45 hdc = GetDC(hwnd); in START_TEST()
46 TEST(hdc != NULL); in START_TEST()
[all …]
H A DNtGdiDeleteObjectApp.c12 HDC hdc; in START_TEST() local
29 hdc = CreateCompatibleDC(NULL); in START_TEST()
30 ok_int(GdiIsHandleValid(hdc), 1); in START_TEST()
33 ok_int(GdiIsHandleValid(hdc), 0); in START_TEST()
39 ok_int(GdiIsHandleValid(hdc), 1); in START_TEST()
42 ok_int(GdiIsHandleValid(hdc), 0); in START_TEST()
46 ok_int(GdiIsHandleValid(hdc), 1); in START_TEST()
49 ok_int(GdiIsHandleValid(hdc), 0); in START_TEST()
57 SelectObject(hdc, hpen); in START_TEST()
66 hdc = GetDC(0); in START_TEST()
[all …]
/reactos/modules/rostests/winetests/user32/
H A Ddce.c41 HDC hdc, old_hdc; in test_dc_attributes() local
64 old_hdc = hdc; in test_dc_attributes()
129 hdc = GetDC(0); in test_dc_attributes()
151 old_hdc = hdc; in test_dc_attributes()
156 ok( old_hdc == hdc, "didn't get same DC %p/%p\n", old_hdc, hdc ); in test_dc_attributes()
171 old_hdc = hdc; in test_dc_attributes()
176 ok( old_hdc == hdc, "didn't get same DC %p/%p\n", old_hdc, hdc ); in test_dc_attributes()
205 HDC hdc; in test_parameters() local
353 old_hdc = hdc; in test_dc_visrgn()
488 HDC hdc; in test_scroll_window() local
[all …]
/reactos/modules/rostests/win32/user32/psmtest/
H A Dpsmtest.c136 HDC hdc = BeginPaint(hWnd, &ps); in MainWndProc() local
184 SelectObject(hdc, hfont); in MainWndProc()
185 SetBkMode(hdc, TRANSPARENT); in MainWndProc()
187 DrawTest(hdc, 0, Test, 0, LPK); in MainWndProc()
191 DrawTest(hdc, 80, Test2, 0, LPK); in MainWndProc()
193 DrawTest(hdc, 120, Test3, 0, LPK); in MainWndProc()
195 DrawTest(hdc, 160, NULL, 0, LPK); in MainWndProc()
212 SetTextAlign(hdc, GetTextAlign(hdc) | TA_RTLREADING); in MainWndProc()
214 SetTextAlign(hdc, GetTextAlign(hdc) & ~TA_RTLREADING); in MainWndProc()
255 SetTextAlign(hdc, GetTextAlign(hdc) | TA_RTLREADING); in MainWndProc()
[all …]
/reactos/win32ss/gdi/gdi32/objects/
H A Dpath.c19 HDC hdc) in AbortPath() argument
32 HDC hdc) in BeginPath() argument
44 HDC hdc) in CloseFigure() argument
57 HDC hdc) in EndPath() argument
70 HDC hdc) in FillPath() argument
83 HDC hdc) in FlattenPath() argument
121 HDC hdc) in PathToRegion() argument
133 HDC hdc, in SetMiterLimit() argument
154 HDC hdc) in StrokeAndFillPath() argument
167 HDC hdc) in StrokePath() argument
[all …]
H A Ddc.c16 HDC hdc = NULL; in IntCreateDICW() local
88 return hdc; in IntCreateDICW()
98 _In_ HDC hdc) in CreateCompatibleDC() argument
131 HDC hdc; in CreateDCA() local
184 return hdc; in CreateDCA()
240 HDC hdc = 0; in CreateICA() local
273 return hdc; in CreateICA()
734 HDC hdc, in SetRelAbs() argument
809 HDC hdc, in GetAspectRatioFilterEx() argument
822 HDC hdc, in GetBoundsRect() argument
[all …]
H A Dpainting.c10 _In_ HDC hdc, in LineTo() argument
25 _In_ HDC hdc, in MoveToEx() argument
72 _In_ HDC hdc, in Ellipse() argument
92 _In_ HDC hdc, in Rectangle() argument
112 _In_ HDC hdc, in RoundRect() argument
134 _In_ HDC hdc, in GetPixel() argument
150 _In_ HDC hdc, in SetPixel() argument
169 _In_ HDC hdc, in SetPixelV() argument
184 _In_ HDC hdc, in FillRgn() argument
206 _In_ HDC hdc, in FrameRgn() argument
[all …]
H A Dcoord.c115 _In_ HDC hdc) in GetMapMode() argument
137 _In_ HDC hdc, in SetMapMode() argument
170 _In_ HDC hdc, in DPtoLP() argument
209 _In_ HDC hdc, in LPtoDP() argument
242 _In_ HDC hdc, in GetCurrentPositionEx() argument
279 _In_ HDC hdc, in GetWorldTransform() argument
305 _In_ HDC hdc, in SetWorldTransform() argument
315 _In_ HDC hdc, in ModifyWorldTransform() argument
352 _In_ HDC hdc, in GetViewportExtEx() argument
384 _In_ HDC hdc, in GetViewportOrgEx() argument
[all …]
/reactos/modules/rostests/apitests/gdi32/
H A DRectangle.c12 HDC hdc; in Test_Rectangle() local
19 hdc = CreateCompatibleDC(NULL); in Test_Rectangle()
23 hBmp = SelectObject(hdc, hBmp); in Test_Rectangle()
38 color = GetPixel(hdc, 0, 0); in Test_Rectangle()
40 color = GetPixel(hdc, 2, 2); in Test_Rectangle()
42 color = GetPixel(hdc, 0, 2); in Test_Rectangle()
44 color = GetPixel(hdc, 2, 0); in Test_Rectangle()
46 color = GetPixel(hdc, 1, 1); in Test_Rectangle()
54 color = GetPixel(hdc, 0, 0); in Test_Rectangle()
85 SelectObject(hdc, hPen); in Test_Rectangle()
[all …]
H A DSetPixel.c34 HDC hdc; in Test_SetPixel_Params() local
42 ok(hdc != 0, "\n"); in Test_SetPixel_Params()
44 ok_long(SetPixel(hdc, 0, 0, 0), -1); in Test_SetPixel_Params()
47 DeleteDC(hdc); in Test_SetPixel_Params()
50 hdc = CreateCompatibleDC(NULL); in Test_SetPixel_Params()
51 ok(hdc != 0, "\n"); in Test_SetPixel_Params()
53 ok_long(SetPixel(hdc, 0, 0, 0), -1); in Test_SetPixel_Params()
55 DeleteDC(hdc); in Test_SetPixel_Params()
71 HDC hdc; in Test_SetPixel_PAL() local
94 hdc = CreateCompatibleDC(0); in Test_SetPixel_PAL()
[all …]
H A DPatBlt.c19 HDC hdc; in Test_PatBlt_Params() local
66 ok(hdc != 0, "\n"); in Test_PatBlt_Params()
70 DeleteDC(hdc); in Test_PatBlt_Params()
73 hdc = CreateCompatibleDC(NULL); in Test_PatBlt_Params()
74 ok(hdc != 0, "\n"); in Test_PatBlt_Params()
77 DeleteDC(hdc); in Test_PatBlt_Params()
80 hdc = CreateCompatibleDC(NULL); in Test_PatBlt_Params()
82 hOldBitmap = SelectObject(hdc, hBitmap); in Test_PatBlt_Params()
90 SetPixel(hdc, 1, 2, RGB(0, 0, 0)); in Test_PatBlt_Params()
97 SetPixel(hdc, 2, 1, RGB(0, 0, 0)); in Test_PatBlt_Params()
[all …]
H A DCreateCompatibleDC.c12 HDC hdcScreen, hOldDC, hdc, hdc2; in Test_CreateCompatibleDC() local
21 hdc = CreateCompatibleDC(NULL); in Test_CreateCompatibleDC()
24 if(hdc) DeleteDC(hdc); in Test_CreateCompatibleDC()
29 ok(hdc == NULL, "Expected NULL, got %p\n", hdc); in Test_CreateCompatibleDC()
31 if(hdc) DeleteDC(hdc); in Test_CreateCompatibleDC()
33 hdc = CreateCompatibleDC(hdcScreen); in Test_CreateCompatibleDC()
47 hOldDC = hdc; in Test_CreateCompatibleDC()
48 DeleteDC(hdc); in Test_CreateCompatibleDC()
56 SetMapMode(hdc, MM_ISOTROPIC); in Test_CreateCompatibleDC()
57 hdc2 = CreateCompatibleDC(hdc); in Test_CreateCompatibleDC()
[all …]
H A DGetClipBox.c13 HDC hdc; in Test_GetClipBox() local
28 hdc = GetDC(hWnd); in Test_GetClipBox()
42 SelectClipRgn(hdc, hrgn); in Test_GetClipBox()
49 SetMetaRgn(hdc); in Test_GetClipBox()
53 SelectClipRgn(hdc, hrgn); in Test_GetClipBox()
61 SelectClipRgn(hdc, hrgn); in Test_GetClipBox()
71 SelectClipRgn(hdc, hrgn); in Test_GetClipBox()
96 SelectClipRgn(hdc, NULL); in Test_GetClipBox()
97 SetMetaRgn(hdc); in Test_GetClipBox()
116 SetMetaRgn(hdc); in Test_GetClipBox()
[all …]
H A DExcludeClipRect.c12 HDC hdc; in Test_ExcludeClipRect() local
15 hdc = CreateCompatibleDC(NULL); in Test_ExcludeClipRect()
17 if (!hdc) return; in Test_ExcludeClipRect()
35 ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1); in Test_ExcludeClipRect()
40 ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1); in Test_ExcludeClipRect()
45 ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1); in Test_ExcludeClipRect()
50 ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1); in Test_ExcludeClipRect()
55 ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1); in Test_ExcludeClipRect()
68 ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1); in Test_ExcludeClipRect()
75 ok_int(GetRandomRgn(hdc, hrgn2, CLIPRGN), 1); in Test_ExcludeClipRect()
[all …]
/reactos/modules/rostests/tests/shaptest/
H A Dshaptest.c24 void PolygonTest ( HDC hdc ) in PolygonTest() argument
109 Mode = GetPolyFillMode(hdc); in PolygonTest()
113 SetPolyFillMode(hdc, ALTERNATE); in PolygonTest()
116 SetPolyFillMode(hdc, WINDING); in PolygonTest()
119 Rectangle ( hdc, 1, 1, 10, 10 ); in PolygonTest()
120 Polygon(hdc,Tri1,nelem(Tri1)); in PolygonTest()
121 Polygon(hdc,Tri2,nelem(Tri2)); in PolygonTest()
123 Rectangle ( hdc, 1, 11, 4, 14 ); in PolygonTest()
154 SetPolyFillMode(hdc, Mode); in PolygonTest()
160 void shaptest( HDC hdc ) in shaptest() argument
[all …]
/reactos/dll/win32/cards/
H A Dcards.c102 SetPixel(hdc, x + 1, y + 1, 0); in BltCard()
103 SetPixel(hdc, x + dx - 2, y + 1, 0); in BltCard()
104 SetPixel(hdc, x + 1, y + dy - 2, 0); in BltCard()
175 GetDCOrgEx(hdc, &pPoint); in cdtDrawExt()
177 hOldBrush = SelectObject(hdc, hBrush); in cdtDrawExt()
178 PatBlt(hdc, x, y, dx, dy, PATCOPY); in cdtDrawExt()
179 SelectObject(hdc, hOldBrush); in cdtDrawExt()
187 hdcCard = CreateCompatibleDC(hdc); in cdtDrawExt()
208 SetPixel(hdc, x, y, SavedPixels[0]); in cdtDrawExt()
225 SetBkColor(hdc, OldBkColor); in cdtDrawExt()
[all …]
/reactos/base/applications/mspaint/
H A Ddrawing.cpp16 MoveToEx(hdc, x1, y1, NULL); in Line()
17 LineTo(hdc, x2, y2); in Line()
18 SetPixelV(hdc, x2, y2, color); in Line()
47 Ellipse(hdc, x1, y1, x2, y2); in Ellp()
73 UINT oldRop = GetROP2(hdc); in Poly()
89 SetROP2(hdc, oldRop); in Poly()
110 ExtFloodFill(hdc, x, y, GetPixel(hdc, x, y), FLOODFILLSURFACE); in Fill()
250 SetROP2(hdc, oldRop); in RectSel()
267 ::SetBkColor(hdc, bg); in Text()
277 ::SetTextColor(hdc, fg); in Text()
[all …]
/reactos/modules/rostests/dibtests/bltrop/
H A Dbltrop.c30 HDC hdc, hdcMem; in WndProc() local
35 hdc = BeginPaint(hWnd, &ps); in WndProc()
36 hdcMem = CreateCompatibleDC(hdc); in WndProc()
42 SelectObject(hdc, brush); in WndProc()
48 SelectObject(hdc, brush); in WndProc()
53 SelectObject(hdc, brush); in WndProc()
58 SelectObject(hdc, brush); in WndProc()
63 SelectObject(hdc, brush); in WndProc()
68 SelectObject(hdc, brush); in WndProc()
73 SelectObject(hdc, brush); in WndProc()
[all …]
/reactos/modules/rostests/win32/user32/biditext/
H A Dbiditext.c18 BOOL WINAPI LpkExtTextOut(HDC hdc, int x, int y,
175 HDC hdc = BeginPaint(hWnd, &ps); in MainWndProc() local
209 SetBkMode(hdc, TRANSPARENT); in MainWndProc()
212 TextOutW(hdc, 200, 10, szString, 14); in MainWndProc()
214 TextOutW(hdc, 200, 30, szReversedString, 14); in MainWndProc()
261 TextOutW(hdc, xpos, 490, &szString[i], 1); in MainWndProc()
264 TextOutW(hdc, xpos, 450, L"lpOrder[i]", 10); in MainWndProc()
266 TextOutW(hdc, xpos, 490, L"String[i]", 9); in MainWndProc()
285 TextOutW(hdc, xpos, 590, &szString[i], 1); in MainWndProc()
288 TextOutW(hdc, xpos, 550, L"lpOrder[i]", 10); in MainWndProc()
[all …]
/reactos/sdk/lib/3rdparty/cardlib/
H A Dcardrgndraw.cpp208 void CardRegion::Clip(HDC hdc) in Clip() argument
253 void CardRegion::Render(HDC hdc) in Render() argument
382 HDC hdc; in PrepareDragBitmaps() local
398 hdc = GetDC(NULL); in PrepareDragBitmaps()
407 ReleaseDC(NULL, hdc); in PrepareDragBitmaps()
506 HDC hdc; in PrepareDragBitmapsThreed() local
518 hdc = GetDC(NULL); in PrepareDragBitmapsThreed()
527 ReleaseDC(NULL, hdc); in PrepareDragBitmapsThreed()
620 HDC hdc = GetDC((HWND)parentWnd); in Redraw() local
623 Render(hdc); in Redraw()
[all …]

12345678910>>...21