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; }