75 printf(
"DrawCaption icon test.\n");
76 printf(
"USAGE: drawcap.exe <testnumber>\n\n");
77 printf(
"Available tests:\n"
78 "1. Class small icon\n"
80 "3. Class small icon + WM_GETICON\n"
81 "4. Class big icon + WM_GETICON\n"
82 "5. WM_GETICON only\n\n");
87 if(testnum < 1 || testnum > 5)
95 memset(&wcx, 0,
sizeof(wcx));
108 printf(
"Shit! RegisterClassEx failed: %d\n",
115 L"DrawCaption icon test",
128 printf(
"Shit! Can't create wnd!\n");
LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
DWORD WINAPI GetLastError(void)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
BOOL WINAPI UpdateWindow(_In_ HWND)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)