2 static __inline ATOM
RegisterSimpleClass(WNDPROC lpfnWndProc
, LPCWSTR lpszClassName
)
6 memset(&wcex
, 0, sizeof(wcex
));
7 wcex
.cbSize
= sizeof(WNDCLASSEX
);
8 wcex
.lpfnWndProc
= lpfnWndProc
;
9 wcex
.hCursor
= LoadCursor(NULL
, IDC_ARROW
);
10 wcex
.hbrBackground
= (HBRUSH
)(COLOR_WINDOW
+1);
11 wcex
.lpszClassName
= lpszClassName
;
12 return RegisterClassExW(&wcex
);