ReactOS 0.4.16-dev-2491-g3dc6630
user32testhelpers.h
Go to the documentation of this file.
1
2#pragma once
3
4static __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}
#define __inline
Definition: _wctype.cpp:15
WORD ATOM
Definition: dimm.idl:113
#define NULL
Definition: types.h:112
#define memset(x, y, z)
Definition: compat.h:39
LPCWSTR lpszClassName
Definition: winuser.h:3334
HBRUSH hbrBackground
Definition: winuser.h:3332
WNDPROC lpfnWndProc
Definition: winuser.h:3326
UINT cbSize
Definition: winuser.h:3324
HCURSOR hCursor
Definition: winuser.h:3331
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
#define COLOR_WINDOW
Definition: winuser.h:929
#define IDC_ARROW
Definition: winuser.h:695
ATOM WINAPI RegisterClassExW(_In_ CONST WNDCLASSEXW *)
#define LoadCursor
Definition: winuser.h:5978
WNDCLASSEXA WNDCLASSEX
Definition: winuser.h:5885
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:3014
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185