From 2c1d8a82a20c71ddc9928798b4eb8c516087adf3 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Fri, 6 Jan 2023 16:36:03 +0800 Subject: [PATCH] Parameterize window name Define another variable for window name. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 6d25960..5614e6c 100644 --- a/src/main.c +++ b/src/main.c @@ -4,7 +4,7 @@ LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) { - + LPCWSTR windowName = L"Window"; MSG msg; HWND hwnd; WNDCLASSW wc = { @@ -21,7 +21,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, }; RegisterClassW(&wc); - hwnd = CreateWindowW(wc.lpszClassName, L"Window", + hwnd = CreateWindowW(wc.lpszClassName, windowName, WS_OVERLAPPEDWINDOW | WS_VISIBLE, 100, 100, 350, 250, NULL, NULL, hInstance, NULL);