about summary refs log tree commit diff stats
path: root/Source/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Main.cpp')
-rw-r--r--Source/Main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Main.cpp b/Source/Main.cpp index 8c4bf8c..8f537f2 100644 --- a/Source/Main.cpp +++ b/Source/Main.cpp
@@ -15,9 +15,11 @@
15#define IDC_READ 0x405 15#define IDC_READ 0x405
16#define IDC_RANDOM 0x406 16#define IDC_RANDOM 0x406
17#define IDC_WRITE 0x407 17#define IDC_WRITE 0x407
18#define IDC_DUMP 0x408
18 19
19HWND hwndSeed, hwndRandomize; 20HWND hwndSeed, hwndRandomize;
20int panel = 0x12C9; 21// int panel = 0x18AF;
22int panel = 0x33D4;
21std::shared_ptr<Panel> _panel; 23std::shared_ptr<Panel> _panel;
22 24
23LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) 25LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
@@ -72,6 +74,9 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
72 case IDC_WRITE: 74 case IDC_WRITE:
73 _panel->Write(panel); 75 _panel->Write(panel);
74 break; 76 break;
77 case IDC_DUMP:
78 _panel->Serialize();
79 break;
75 } 80 }
76 } 81 }
77 return DefWindowProc(hwnd, message, wParam, lParam); 82 return DefWindowProc(hwnd, message, wParam, lParam);
@@ -123,6 +128,9 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd
123 CreateWindow(L"BUTTON", L"WRITE", 128 CreateWindow(L"BUTTON", L"WRITE",
124 WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, 129 WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,
125 160, 160, 100, 26, hwnd, (HMENU)IDC_WRITE, hInstance, NULL); 130 160, 160, 100, 26, hwnd, (HMENU)IDC_WRITE, hInstance, NULL);
131 CreateWindow(L"BUTTON", L"DUMP",
132 WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,
133 160, 190, 100, 26, hwnd, (HMENU)IDC_DUMP, hInstance, NULL);
126 134
127 CreateWindow(L"BUTTON", L"", 135 CreateWindow(L"BUTTON", L"",
128 WS_VISIBLE | WS_CHILD | BS_CHECKBOX, 136 WS_VISIBLE | WS_CHILD | BS_CHECKBOX,