#include <windows.h>
#include <stdio.h>
#include <assert.h>
Go to the source code of this file.
◆ ASSERT
◆ nelem
◆ MainWndProc()
Definition at line 229 of file shaptest.c.
230{
233
235 {
236
241 break;
242
245 break;
246
247 default:
249 }
250 return 0;
251}
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
Referenced by WinMain().
◆ PolygonTest()
Definition at line 24 of file shaptest.c.
25{
27 HBRUSH RedBrush, OldBrush;
29 POINT PointsAlternate[] =
30 {
31 { 20, 80 },
32 { 60, 20 },
33 { 90, 80 },
34 { 20, 40 },
35 { 100, 40 }
36 };
37 POINT PointsWinding[] =
38 {
39 { 130, 80 },
40 { 170, 20 },
41 { 200, 80 },
42 { 130, 40 },
43 { 210, 40 }
44 };
46 {
47 { 3, 3 },
48 { 5, 3 },
49 { 3, 5 }
50 };
52 {
53 { 7, 3 },
54 { 7, 7 },
55 { 3, 7 },
56 };
58 {
59 { 1, 15 },
60 { 3, 15 },
61 { 3, 17 },
62 { 1, 17 }
63 };
65 {
66 { 5, 15 },
67 { 7, 15 },
68 { 7, 17 },
69 { 5, 17 }
70 };
72 {
73 { 1, 23 },
74 { 3, 23 },
75 { 3, 25 },
76 { 1, 25 }
77 };
79 {
80 { 5, 23 },
81 { 7, 23 },
82 { 7, 25 },
83 { 5, 25 }
84 };
86 {
87 { 1, 31 },
88 { 3, 31 },
89 { 3, 33 },
90 { 1, 33 }
91 };
93 {
94 { 5, 31 },
95 { 7, 31 },
96 { 7, 33 },
97 { 5, 33 }
98 };
99
100
105
108
110
112
115
118
122
139
140
145
152
153
157}
BOOL Polygon(CONST PPOINT UnsafePoints, int Count, int polyFillMode)
int WINAPI GetPolyFillMode(_In_ HDC)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI RoundRect(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
int WINAPI SetPolyFillMode(_In_ HDC, _In_ int)
Referenced by shaptest().
◆ shaptest()
◆ WinMain()
Definition at line 168 of file shaptest.c.
172{
176
188 {
191 return(1);
192 }
193
195 "Shaptest",
197 0,
198 0,
206 {
209 return(1);
210 }
211
215
217
219 {
222 }
223
225
227}
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
#define WS_OVERLAPPEDWINDOW
LRESULT WINAPI MainWndProc(HWND, UINT, WPARAM, LPARAM)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
DWORD WINAPI GetLastError(void)
HGDIOBJ WINAPI GetStockObject(_In_ int)
#define OUT_DEFAULT_PRECIS
#define CLIP_DEFAULT_PRECIS
HFONT WINAPI CreateFontA(_In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPCSTR)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
◆ tf