77 L"DC_TEXT | DC_ACTIVE:",
82 L"DC_TEXT | DC_ICON:" ,
87 L"DC_TEXT | DC_ACTIVE | DC_ICON:" ,
92 L"DC_TEXT | DC_INBUTTON:" ,
97 L"DC_TEXT | DC_ACTIVE | DC_INBUTTON:" ,
102 L"DC_TEXT | DC_ICON | DC_INBUTTON:" ,
107 L"DC_TEXT | DC_ACTIVE | DC_ICON | DC_INBUTTON:" ,
147 L"DC_GRADIENT | DC_SMALLCAP",
152 L"DC_GRADIENT | DC_BUTTONS",
153 DC_GRADIENT | DC_BUTTONS);
157 L"DC_BUTTONS | DC_SMALLCAP",
162 L"DC_BUTTONS | DC_SMALLCAP | DC_GRADIENT",
194 printf(
"DrawCaption testcode.\n");
195 printf(
"USAGE: drawcap.exe <testnumber> [useicon]\n\n");
196 printf(
"Available tests:\n"
197 "1. DrawCaption test\n"
198 "2. DrawCaption test + DC_GRADIENT\n"
199 "3. DrawCaption test + DC_SMALLCAP\n"
200 "4. DrawCaption test + DC_BUTTONS\n"
201 "5. DrawCaption test + DC_GRADIENT | DC_SMALLCAP\n"
202 "6. DrawCaption test + DC_GRADIENT | DC_BUTTONS\n"
203 "7. DrawCaption test + DC_BUTTONS | DC_SMALLCAP\n"
204 "8. DrawCaption test + DC_BUTTONS | DC_SMALLCAP | DC_GRADIENT\n\n");
209 if(testnum < 1 || testnum > 8)
234 printf(
"Shit! Can't create brush.");
238 memset(&wcx, 0,
sizeof(wcx));
249 printf(
"Shit! RegisterClassEx failed: %d\n",
270 printf(
"Shit! Can't create wnd!\n");
VOID DrawCaptionTest(HWND hWnd, HDC hDc, WCHAR *AddonStr, DWORD Addon)
LRESULT CALLBACK CaptWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
VOID CapTest(HWND hWnd, HDC hDc, LPRECT pR, WCHAR *Text, DWORD Flags, WCHAR *AddonStr, DWORD Addon)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
DWORD WINAPI GetLastError(void)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI DrawCaption(_In_ HWND, _In_ HDC, _In_ LPCRECT, _In_ UINT)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
BOOL WINAPI UpdateWindow(_In_ HWND)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
_Must_inspect_result_ _In_ ULONG Flags