Go to the source code of this file.
◆ START_TEST()
Definition at line 137 of file CreateIconIndirect.c.
138{
144
147
149 ok(hcursor != 0,
"should not fail\n");
151 ok(iconinfo2.
fIcon == 0,
"\n");
153
162
165
167 ok(hcursor != 0,
"should not fail\n");
169 ok(iconinfo2.
fIcon == 0,
"\n");
174
183
184
186 ok(hicon != 0,
"should not fail\n");
187
189 ok(iconinfo2.
fIcon == 0 || iconinfo2.
fIcon == 1,
"fIcon = 0x%x\n", iconinfo2.
fIcon);
194
195}
void Test_GetIconInfo(BOOL fIcon)
#define ok_int(expression, result)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
HICON WINAPI CreateIcon(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ BYTE, _In_ BYTE, _In_ const BYTE *, _In_ const BYTE *)
BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO)
HCURSOR WINAPI CreateCursor(_In_opt_ HINSTANCE, _In_ int, _In_ int, _In_ int, _In_ int, _In_ CONST VOID *, _In_ CONST VOID *)
◆ Test_GetIconInfo()
Definition at line 7 of file CreateIconIndirect.c.
8{
12
13 iconinfo.
fIcon = fIcon;
18
20 ok(hicon == 0,
"should fail\n");
21
24 ok(hicon != 0,
"should not fail\n");
25
28 if (fIcon)
29 {
32 }
33 else
34 {
37 }
38 ok(iconinfo2.
hbmMask !=
NULL,
"iconinfo2.hbmMask was NULL\n");
40 ok(iconinfo2.
hbmColor ==
NULL,
"iconinfo2.hbmColor was not NULL\n");
41
44 if (fIcon)
45 {
48 }
49 else
50 {
53 }
57
60 ok(hicon != 0,
"should not fail\n");
61
64 if (fIcon)
65 {
68 }
69 else
70 {
73 }
78
87
96 "bmBitsPixel = %u\n",
bitmap.bmBitsPixel);
98
102 ok(hicon == 0,
"should fail\n");
103
107 ok(hicon == 0,
"should fail\n");
108
111 ok(hicon != 0,
"should not fail\n");
112
114
123
132 "bmBitsPixel = %u\n",
bitmap.bmBitsPixel);
134}
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
HICON WINAPI CreateIconIndirect(_In_ PICONINFO)
HDC WINAPI GetDC(_In_opt_ HWND)
Referenced by START_TEST().