diff --git a/EzWinAPIBuilders.cpp b/EzWinAPIBuilders.cpp index 5a9ccab..7f3247d 100644 --- a/EzWinAPIBuilders.cpp +++ b/EzWinAPIBuilders.cpp @@ -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; diff --git a/EzWinAPIBuilders.h b/EzWinAPIBuilders.h index 2a6fc76..5045d93 100644 --- a/EzWinAPIBuilders.h +++ b/EzWinAPIBuilders.h @@ -2,7 +2,7 @@ #include #ifndef FUNCTIONS_H_INCLUDED #define FUNCTIONS_H_INCLUDED -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); HWND EzCreateWindow(WNDCLASSEX windowClass, HINSTANCE instance, LPCWSTR windowTitle, DWORD windowStyles, int windowWidth, int windowHeight, HWND parent); HWND EzCreateButton(LPCWSTR label, int posX, int posY, int sizeW, int sizeH, HWND mainWindow); HWND EzCreateLabel(LPCWSTR startingContent, int posX, int posY, int sizeW, int sizeH, HWND mainWindow); diff --git a/main.cpp b/main.cpp index 99e830a..5bc3507 100644 --- a/main.cpp +++ b/main.cpp @@ -7,7 +7,7 @@ HWND browseButton; LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE currentInst, HINSTANCE previousInst, LPSTR lpCmdLine, int nCmdShow) { - WNDCLASSEX windowClass = EzCreateClass(L"Easy Audio Player", WndProc, currentInst, IDI_ERROR, IDC_ARROW, NULL); + WNDCLASSEX windowClass = EzCreateClass(L"Easy Audio Player", WndProc, currentInst, IDI_ERROR, IDC_ARROW); if (!RegisterClassEx(&windowClass)) { return 1; }