#include <windows.h>
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
|
BOOL WINAPI | GdiGradientFill (HDC hdc, TRIVERTEX *vert_array, ULONG nvert, void *grad_array, ULONG ngrad, ULONG mode) |
|
LRESULT WINAPI | MainWndProc (HWND, UINT, WPARAM, LPARAM) |
|
int WINAPI | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) |
|
◆ GdiGradientFill()
◆ MainWndProc()
Definition at line 71 of file gradient.c.
72{
74
76 {
78 {
84
87 vert [0] .
Red = 0xff00;
88 vert [0] .
Green = 0xff00;
89 vert [0] .
Blue = 0xff00;
90 vert [0] .
Alpha = 0x0000;
91
94 vert [1] .
Red = 0x0000;
95 vert [1] .
Green = 0x0000;
96 vert [1] .
Blue = 0xff00;
97 vert [1] .
Alpha = 0x0000;
98
101 vert [2] .
Red = 0xff00;
102 vert [2] .
Green = 0x0000;
103 vert [2] .
Blue = 0x0000;
104 vert [2] .
Alpha = 0x0000;
105
108 vert [3] .
Red = 0x8000;
109 vert [3] .
Green = 0x8000;
110 vert [3] .
Blue = 0x0000;
111 vert [3] .
Alpha = 0x0000;
112
115 vert [4] .
Red = 0x0000;
116 vert [4] .
Green = 0xff00;
117 vert [4] .
Blue = 0x0000;
118 vert [4] .
Alpha = 0x0000;
119
123
127
131
133
134
137 vert [0] .
Red = 0x0000;
138 vert [0] .
Green = 0x0000;
139 vert [0] .
Blue = 0x0000;
140 vert [0] .
Alpha = 0x0000;
141
144 vert [1] .
Red = 0x0000;
145 vert [1] .
Green = 0x0000;
146 vert [1] .
Blue = 0xff00;
147 vert [1] .
Alpha = 0x0000;
148
151 vert [2] .
Red = 0x0000;
152 vert [2] .
Green = 0x0000;
153 vert [2] .
Blue = 0x0000;
154 vert [2] .
Alpha = 0x0000;
155
158 vert [3] .
Red = 0x0000;
159 vert [3] .
Green = 0x0000;
160 vert [3] .
Blue = 0xff00;
161 vert [3] .
Alpha = 0x0000;
162
165
168
171
173 break;
174 }
175
178 break;
179
180 default:
182 }
183 return 0;
184}
BOOL WINAPI GdiGradientFill(HDC hdc, TRIVERTEX *vert_array, ULONG nvert, void *grad_array, ULONG ngrad, ULONG mode)
__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().
◆ WinMain()
Definition at line 11 of file gradient.c.
15{
19
31 {
34 return(1);
35 }
36
38 "GradientFill Test",
40 0,
41 0,
49 {
52 return(1);
53 }
54
55
56
57
58
60
62 {
65 }
66
67
68
70}
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
LRESULT WINAPI MainWndProc(HWND, UINT, WPARAM, LPARAM)
#define WS_OVERLAPPEDWINDOW
TW_UINT32 TW_UINT16 TW_UINT16 MSG
DWORD WINAPI GetLastError(void)
HGDIOBJ WINAPI GetStockObject(_In_ int)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)