浏览代码

Parameterize window name

Define another variable for window name.
master
父节点
当前提交
2c1d8a82a2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/main.c

+ 2
- 2
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);



正在加载...
取消
保存