From e48ce4469cee270687e04bc1a2b91d3c2bba0789 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Fri, 2 Nov 2018 21:22:29 -0700 Subject: arglbargl --- Source/Main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Source/Main.cpp') 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 @@ #define IDC_READ 0x405 #define IDC_RANDOM 0x406 #define IDC_WRITE 0x407 +#define IDC_DUMP 0x408 HWND hwndSeed, hwndRandomize; -int panel = 0x12C9; +// int panel = 0x18AF; +int panel = 0x33D4; std::shared_ptr _panel; LRESULT 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) case IDC_WRITE: _panel->Write(panel); break; + case IDC_DUMP: + _panel->Serialize(); + break; } } return DefWindowProc(hwnd, message, wParam, lParam); @@ -123,6 +128,9 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd CreateWindow(L"BUTTON", L"WRITE", WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, 160, 160, 100, 26, hwnd, (HMENU)IDC_WRITE, hInstance, NULL); + CreateWindow(L"BUTTON", L"DUMP", + WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, + 160, 190, 100, 26, hwnd, (HMENU)IDC_DUMP, hInstance, NULL); CreateWindow(L"BUTTON", L"", WS_VISIBLE | WS_CHILD | BS_CHECKBOX, -- cgit 1.4.1