summaryrefslogtreecommitdiff
path: root/xW/xW.cpp
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-07-15 23:34:37 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-07-15 23:35:46 +0200
commit90859107c8686c8798bff26aeb8ff17cea54bee1 (patch)
treeaeba2ab0ff6645fa5fda5d346246280d18113e35 /xW/xW.cpp
parent0219dbd02615498f4a931e33ef2337e0bbf9b526 (diff)
downloadxK-90859107c8686c8798bff26aeb8ff17cea54bee1.tar.gz
xK-90859107c8686c8798bff26aeb8ff17cea54bee1.tar.xz
xK-90859107c8686c8798bff26aeb8ff17cea54bee1.zip
xW: set version information
Diffstat (limited to 'xW/xW.cpp')
-rw-r--r--xW/xW.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/xW/xW.cpp b/xW/xW.cpp
index bbd208a..c0b6a03 100644
--- a/xW/xW.cpp
+++ b/xW/xW.cpp
@@ -18,6 +18,7 @@
#include "xC-proto.cpp"
#include "xW-resources.h"
+#include "config.h"
#include <winsock2.h>
#include <ws2tcpip.h>
@@ -1744,11 +1745,12 @@ wWinMain(HINSTANCE hInstance, [[maybe_unused]] HINSTANCE hPrevInstance,
wc.hIcon = g.hicon;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = GetSysColorBrush(COLOR_3DFACE);
- wc.lpszClassName = L"xW";
+ wc.lpszClassName = TEXT(PROJECT_NAME);
if (!RegisterClassEx(&wc))
return 1;
- g.hwndMain = CreateWindowEx(WS_EX_CONTROLPARENT, L"xW", L"xW",
+ g.hwndMain = CreateWindowEx(
+ WS_EX_CONTROLPARENT, wc.lpszClassName, TEXT(PROJECT_NAME),
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 600, 400, NULL, NULL, hInstance, NULL);