removed backgroundBrush

This commit is contained in:
mmacierzanka committed 2021-04-18 22:09:37 +02:00
1 parent a507472005
commit 68434a2a29
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
#include "EzWinAPIBuilders.h"
WNDCLASSEX EzCreateClass(LPCWSTR name, WNDPROC messageLoop, HINSTANCE instance, LPCWSTR classIcon, LPCWSTR cursor, HBRUSH backgroundBrush) {
WNDCLASSEX EzCreateClass(LPCWSTR name, WNDPROC messageLoop, HINSTANCE instance, LPCWSTR classIcon, LPCWSTR cursor) {
WNDCLASSEX wc;
wc.style = 0;
wc.cbSize = sizeof(WNDCLASSEX);
@@ -10,7 +10,7 @@ WNDCLASSEX EzCreateClass(LPCWSTR name, WNDPROC messageLoop, HINSTANCE instance,
wc.hInstance = instance;
wc.hIcon = LoadIcon(NULL, classIcon);
wc.hCursor = LoadCursor(NULL, cursor);
wc.hbrBackground = backgroundBrush;
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW);
wc.lpszMenuName = NULL;
wc.lpszClassName = name;
wc.cbWndExtra = 0;