ReactOS  0.4.13-dev-235-g7373cb3
user32testhelpers.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
5 {
6  WNDCLASSEXW wcex;
7 
8  memset(&wcex, 0, sizeof(wcex));
9  wcex.cbSize = sizeof(WNDCLASSEX);
10  wcex.lpfnWndProc = lpfnWndProc;
12  wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
13  wcex.lpszClassName = lpszClassName;
14  return RegisterClassExW(&wcex);
15 }
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
WORD ATOM
Definition: dimm.idl:113
#define COLOR_WINDOW
Definition: winuser.h:908
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpszClassName
Definition: winuser.h:3179
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
HBRUSH hbrBackground
Definition: winuser.h:3177
UINT cbSize
Definition: winuser.h:3169
HCURSOR hCursor
Definition: winuser.h:3176
#define LoadCursor
Definition: winuser.h:5678
WNDPROC lpfnWndProc
Definition: winuser.h:3171
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2859
#define IDC_ARROW
Definition: winuser.h:682
WNDCLASSEXA WNDCLASSEX
Definition: winuser.h:5585
#define memset(x, y, z)
Definition: compat.h:39