From f05fedda765131f1a5da051b148cc1deebe1cde9 Mon Sep 17 00:00:00 2001 From: Palash Bansal Date: Wed, 23 Oct 2019 00:14:11 +0530 Subject: [PATCH] Fix issue for Alt+Tab doesn't show Notepad++ (Windows 7) Issue is because of Tool window being used instead of normal window for these 2 dialogs- "Close All" and "Rename" Known issue already discussed on- https://stackoverflow.com/questions/3760571/showdialog-makes-app-window-disappear-from-windows-alt-tab-list Excerpt from https://docs.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles - WS_EX_TOOLWINDOW 0x00000080L The window is intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing ALT+SPACE. DS_MODALFRAME is added for "Close All" dialog, because after making it normal window, it started showing default empty windows file icon. Fix #6244, close #6252 --- PowerEditor/src/Notepad_plus.rc | 4 ++-- PowerEditor/src/ScitillaComponent/UserDefineDialog.rc | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.rc b/PowerEditor/src/Notepad_plus.rc index 01988008..e17b4c7f 100644 --- a/PowerEditor/src/Notepad_plus.rc +++ b/PowerEditor/src/Notepad_plus.rc @@ -1034,8 +1034,8 @@ BEGIN END IDD_DOSAVEORNOTBOX DIALOGEX 0, 0, 310, 80 -STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU -EXSTYLE WS_EX_TOOLWINDOW | WS_EX_WINDOWEDGE +STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU +EXSTYLE WS_EX_WINDOWEDGE CAPTION "Save" FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x1 BEGIN diff --git a/PowerEditor/src/ScitillaComponent/UserDefineDialog.rc b/PowerEditor/src/ScitillaComponent/UserDefineDialog.rc index b087c5bf..8a5dcb98 100644 --- a/PowerEditor/src/ScitillaComponent/UserDefineDialog.rc +++ b/PowerEditor/src/ScitillaComponent/UserDefineDialog.rc @@ -255,7 +255,6 @@ END IDD_STRING_DLG DIALOGEX 0, 0, 151, 52 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU -EXSTYLE WS_EX_TOOLWINDOW FONT 8, "MS Shell Dlg", 0, 0, 0x1 BEGIN LTEXT "STATIC :",IDC_STRING_STATIC,6,4,42,8,0,WS_EX_RIGHT