#include "windows.h"
#include "stdio.h"
#include "resource.h"
Go to the source code of this file.
◆ wmain()
Definition at line 66 of file capicon.c.
67{
72
74 {
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"
79 "2. Class big 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");
83 return 0;
84 }
85
87 if(testnum < 1 || testnum > 5)
88 {
90 return 1;
91 }
92
94
95 memset(&wcx, 0,
sizeof(wcx));
105
107 {
108 printf(
"Shit! RegisterClassEx failed: %d\n",
110 return 1;
111 }
112
115 L"DrawCaption icon test",
119 250,
120 100,
122 0,
125
127 {
128 printf(
"Shit! Can't create wnd!\n");
130 return 1;
131 }
132
133
136
138 {
141 }
142
144 return 0;
145}
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)
BOOL WINAPI UpdateWindow(_In_ HWND)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
◆ WndProc()
Definition at line 29 of file capicon.c.
33{
35
37 {
38 case WM_GETICON:
40 {
46
48 {
50 break;
51 }
52
54 }
55 break;
56
59 return 0;
60 }
61
63}
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
Referenced by wmain().
◆ hInst
◆ testnum
◆ WndClass
WCHAR WndClass[] = L"capicon_class" |
Definition at line 23 of file capicon.c.
Referenced by _tWinMain(), capCreateCaptureWindowW(), ImageView_Main(), RegisterClassExA(), RegisterClassExWOWW(), RegisterConWndClass(), RegisterHexEditorClass(), RegisterIMEClass(), RegisterSystemControls(), RegisterWinPrevClass(), SHRegisterClassW(), SHUnregisterClassesA(), SHUnregisterClassesW(), START_TEST(), WinMain(), and wmain().