From 7c0e0823da2a2f98429a725e52017e1b717c97eb Mon Sep 17 00:00:00 2001 From: Thell Fowler Date: Sat, 9 May 2009 04:41:32 +0000 Subject: [PATCH] [BUG_FIXED] - In Windows 7 when the find dialog was closed the translucaent shadow remained. [Ticket#2786783] git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@476 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index e6a710d1d..9d4c66ffa 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -683,7 +683,7 @@ BOOL CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lP if (isCheckedOrNot(IDC_TRANSPARENT_LOSSFOCUS_RADIO)) { - if (LOWORD(wParam) == WA_INACTIVE) + if (LOWORD(wParam) == WA_INACTIVE && Window::isVisible()) { int percent = ::SendDlgItemMessage(_hSelf, IDC_PERCENTAGE_SLIDER, TBM_GETPOS, 0, 0); (NppParameters::getInstance())->SetTransparent(_hSelf, percent);