diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-30 19:40:39 -0700 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2018-10-30 19:40:39 -0700 |
commit | 2ec4950107245df8f01860a3289b7731753933cd (patch) | |
tree | 314efd4e5f778d03b97fa5b7b5de70ec91e99d64 /Source | |
parent | 3ef50b71d80683dc60c83153c48fb6c14915bf04 (diff) | |
download | witness-tutorializer-2ec4950107245df8f01860a3289b7731753933cd.tar.gz witness-tutorializer-2ec4950107245df8f01860a3289b7731753933cd.tar.bz2 witness-tutorializer-2ec4950107245df8f01860a3289b7731753933cd.zip |
Fix probably
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Main.cpp | 4 | ||||
-rw-r--r-- | Source/Version.h | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/Source/Main.cpp b/Source/Main.cpp index b4aba0d..e6b149f 100644 --- a/Source/Main.cpp +++ b/Source/Main.cpp | |||
@@ -82,6 +82,10 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd | |||
82 | HWND hwnd = CreateWindow(WINDOW_CLASS, PRODUCT_NAME, WS_OVERLAPPEDWINDOW, | 82 | HWND hwnd = CreateWindow(WINDOW_CLASS, PRODUCT_NAME, WS_OVERLAPPEDWINDOW, |
83 | 400, 200, 500, 500, nullptr, nullptr, hInstance, nullptr); | 83 | 400, 200, 500, 500, nullptr, nullptr, hInstance, nullptr); |
84 | 84 | ||
85 | CreateWindow(L"STATIC", L"Version: " VERSION_STR, | ||
86 | WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT, | ||
87 | 390, 15, 90, 16, hwnd, NULL, hInstance, NULL); | ||
88 | |||
85 | CreateWindow(L"STATIC", L"Enter a seed:", | 89 | CreateWindow(L"STATIC", L"Enter a seed:", |
86 | WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT, | 90 | WS_TABSTOP | WS_VISIBLE | WS_CHILD | SS_LEFT, |
87 | 10, 15, 90, 16, hwnd, NULL, hInstance, NULL); | 91 | 10, 15, 90, 16, hwnd, NULL, hInstance, NULL); |
diff --git a/Source/Version.h b/Source/Version.h index cd79def..ed79ee5 100644 --- a/Source/Version.h +++ b/Source/Version.h | |||
@@ -4,10 +4,11 @@ | |||
4 | #define MINOR 0 | 4 | #define MINOR 0 |
5 | #define PATCH 1 | 5 | #define PATCH 1 |
6 | 6 | ||
7 | #define VERSION MAJOR, MINOR, PATCH, 0 | 7 | #define VERSION MAJOR, MINOR, PATCH |
8 | 8 | ||
9 | #define TO_STRING(s) #s | 9 | #define TO_STRING2(s) L#s |
10 | #define VERSION_STR TO_STRING(MAJOR) "." TO_STRING(MINOR) "." TO_STRING(PATCH) ".0" | 10 | #define TO_STRING(s) TO_STRING2(s) |
11 | #define VERSION_STR TO_STRING(MAJOR) L"." TO_STRING(MINOR) L"." TO_STRING(PATCH) | ||
11 | 12 | ||
12 | #define PRODUCT_NAME L"Witness Randomizer" | 13 | #define PRODUCT_NAME L"Witness Randomizer" |
13 | #define WINDOW_CLASS L"WitnessRandomizer" | 14 | #define WINDOW_CLASS L"WitnessRandomizer" |