From 3035280a8b502d5b456ed562b62cb44f2da72c48 Mon Sep 17 00:00:00 2001 From: Soul Dark <1012179378@qq.com> Date: Tue, 14 Aug 2018 17:15:41 +0800 Subject: [PATCH] update to 1.2.3 --- NetSpeed/NetSpeed/Dialog/Dialog_Setting/Dialog_Setting.cpp | 4 ++-- NetSpeed/NetSpeed/Registry/Registry.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NetSpeed/NetSpeed/Dialog/Dialog_Setting/Dialog_Setting.cpp b/NetSpeed/NetSpeed/Dialog/Dialog_Setting/Dialog_Setting.cpp index 108c0b7..4f6260a 100644 --- a/NetSpeed/NetSpeed/Dialog/Dialog_Setting/Dialog_Setting.cpp +++ b/NetSpeed/NetSpeed/Dialog/Dialog_Setting/Dialog_Setting.cpp @@ -37,8 +37,8 @@ INT_PTR Dialog_Setting::Process(HWND Handle_Dialog, UINT Message_Dialog, WPARAM case ID_Button_CleanAndExit: { Registry::Clean(); - Destroy(); - DestroyWindow(Handle_Dialog); + Dialog_Main::Destroy(); + Dialog_Setting::Destroy(); break; } case ID_Button_TextColor: diff --git a/NetSpeed/NetSpeed/Registry/Registry.cpp b/NetSpeed/NetSpeed/Registry/Registry.cpp index 7e0462d..a77e8ae 100644 --- a/NetSpeed/NetSpeed/Registry/Registry.cpp +++ b/NetSpeed/NetSpeed/Registry/Registry.cpp @@ -49,7 +49,7 @@ COLORREF Registry::ColorBackground_Get() { LSTATUS Status_ColorBackground = Registry::Value_Get(Path_NetSpeed_, Value_ColorBackground_, RRF_RT_REG_DWORD, &ColorBackground); if (Status_ColorBackground != ERROR_SUCCESS) { ColorBackground = RGB(0, 0, 0); - Registry::Transparency_Set(ColorBackground); + Registry::ColorBackground_Set(ColorBackground); } return ColorBackground; } @@ -78,7 +78,7 @@ COLORREF Registry::ColorText_Get() { LSTATUS Status_ColorText = Registry::Value_Get(Path_NetSpeed_, Value_ColorText_, RRF_RT_REG_DWORD, &ColorText); if (Status_ColorText != ERROR_SUCCESS) { ColorText = RGB(255, 255, 255); - Registry::Transparency_Set(ColorText); + Registry::ColorText_Set(ColorText); } return ColorText; }