From 4a225476fe02b479874ccd8b2043bfa753d9cd68 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Tue, 23 Jul 2013 18:24:19 +0000 Subject: [PATCH] [BUG_FIXED] (Author: Andreas Jonsson) Fix regression -systemtray option not working properly. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1082 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus_Window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus_Window.cpp b/PowerEditor/src/Notepad_plus_Window.cpp index 889a0647e..313131c10 100644 --- a/PowerEditor/src/Notepad_plus_Window.cpp +++ b/PowerEditor/src/Notepad_plus_Window.cpp @@ -99,7 +99,10 @@ void Notepad_plus_Window::init(HINSTANCE hInst, HWND parent, const TCHAR *cmdLin posInfo.length = sizeof(WINDOWPLACEMENT); posInfo.flags = 0; - posInfo.showCmd = nppGUI._isMaximized?SW_SHOWMAXIMIZED:SW_SHOWNORMAL; + if(_isPrelaunch) + posInfo.showCmd = SW_HIDE; + else + posInfo.showCmd = nppGUI._isMaximized?SW_SHOWMAXIMIZED:SW_SHOWNORMAL; posInfo.ptMinPosition.x = (LONG)-1; posInfo.ptMinPosition.y = (LONG)-1; posInfo.ptMaxPosition.x = (LONG)-1;