From 4c2cdac0c4b33ecb823a41cb8a8326750bd07e38 Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Sat, 2 Mar 2024 16:10:37 +0100 Subject: [PATCH] +fix: regression: initial show NP3 window minimized --- src/Notepad3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notepad3.c b/src/Notepad3.c index 6ea9f545c..5e4c78561 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -1950,7 +1950,7 @@ HWND InitInstance(const HINSTANCE hInstance, int nCmdShow) SetWindowLong(hwndMain, GWL_STYLE, GetWindowLong(hwndMain, GWL_STYLE) & ~WS_CAPTION); } - if (s_flagStartAsTrayIcon || (nCmdShow & SW_MINIMIZE)) { + if (s_flagStartAsTrayIcon || (nCmdShow == SW_MINIMIZE) || (nCmdShow == SW_SHOWMINIMIZED)) { if (Settings.MinimizeToTray) { MinimizeWndToTray(hwndMain); }