From 150ccf8b14c6afd7ed99cc4d365c385544da4c5b Mon Sep 17 00:00:00 2001 From: spx Date: Wed, 30 Oct 2013 04:35:44 +0900 Subject: [PATCH] Additional change to f5d875e This also fixes the flickering issue caused by !Refresh: http://rainmeter.net/forum/viewtopic.php?f=14&t=16535#p92322 --- Library/MeterWindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index 9bc655aa..0bdf4a67 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -276,7 +276,7 @@ void MeterWindow::Dispose(bool refresh) void MeterWindow::Initialize() { m_Window = CreateWindowEx( - WS_EX_TOOLWINDOW, + WS_EX_TOOLWINDOW | WS_EX_LAYERED, METERWINDOW_CLASS_NAME, nullptr, WS_POPUP, @@ -421,10 +421,8 @@ void MeterWindow::Refresh(bool init, bool all) RemoveWindowExStyle(WS_EX_TRANSPARENT); m_Hidden = m_WindowStartHidden; + m_TransparencyValue = m_AlphaValue; - // Set the window region - AddWindowExStyle(WS_EX_LAYERED); - UpdateWindow(m_AlphaValue); Update(true); if (m_BlurMode == BLURMODE_NONE)