From 614070068f740f115594a101d352f2032ff2bb1d Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 6 Aug 2013 10:11:49 +0000 Subject: [PATCH] [BUG_FIXED] (Author: Ede_123) Fix opening file in Notpad++ makes Aero-snapped canceled. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1099 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/winmain.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/winmain.cpp b/PowerEditor/src/winmain.cpp index 31db0918..22c00e7c 100644 --- a/PowerEditor/src/winmain.cpp +++ b/PowerEditor/src/winmain.cpp @@ -337,12 +337,18 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int) sw = SW_MAXIMIZE; else if (::IsIconic(hNotepad_plus)) sw = SW_RESTORE; + +/* REMOVED else sw = SW_SHOW; // IMPORTANT !!! ::ShowWindow(hNotepad_plus, sw); - +DEVOMER*/ +/* ADDED */ + if (sw != 0) + ::ShowWindow(hNotepad_plus, sw); +/* DEDDA */ ::SetForegroundWindow(hNotepad_plus); if (params.size() > 0) //if there are files to open, use the WM_COPYDATA system