bladem2003 Posted December 24, 2024 Posted December 24, 2024 If I create a GUI with $WS_EX_NOACTIVATE and i minimize the GUI a window appears above the taskbar. Is there any way to prevent this? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() ; Create a GUI with various controls. Local $hGUI = GUICreate("Example", 400, 400, -1, -1, -1, $WS_EX_NOACTIVATE) ; Display the GUI. GUISetState(@SW_SHOW, $hGUI) ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd ; Delete the previous GUI and all controls. GUIDelete($hGUI) EndFunc ;==>Example
ioa747 Posted December 24, 2024 Posted December 24, 2024 (edited) I don't notice this behavior to me, with Windows 10, the only thing that is visible is the tray Icon. Edit: To be precise, I don't see any folding windows as shown in your photo. Edited December 24, 2024 by ioa747 I know that I know nothing
bladem2003 Posted December 24, 2024 Author Posted December 24, 2024 (edited) strange... I have it on 3 computers and in a VM (win 10 and 11). AutoIt Version: 3.3.16.1 Windows_11_x64_2024-12-24 09-37-33.mkv Edited December 24, 2024 by bladem2003
Nine Posted December 24, 2024 Posted December 24, 2024 @bladem2003 I can reproduce the behavior that you explained. I believe it is a feature of Windows (I also have Win10). Since you loose the ability to restore the windows, I think Windows decided to add this feature. If you have a maximized window, you do not see the window bar over the task bar. Maybe this is why @ioa747 is not seeing it... bladem2003 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
Solution pixelsearch Posted December 24, 2024 Solution Posted December 24, 2024 6 hours ago, bladem2003 said: If I create a GUI with $WS_EX_NOACTIVATE and i minimize the GUI a window appears above the taskbar. Is there any way to prevent this? On my computer too, I can reproduce the behavior you described ("a window appears above the taskbar on the left side") According to msdn, if you use $WS_EX_NOACTIVATE and want your window to appear on the TaskBar, then you need to add the ExStyle $WS_EX_APPWINDOW BitOr($WS_EX_NOACTIVATE, $WS_EX_APPWINDOW) I tested it and it works. When the GUI is restored from the TaskBar and another window partially covers it, then clicking on your GUI doesn't bring it to the foreground (which is the purpose of $WS_EX_NOACTIVATE) Hope it helps bladem2003, ioa747 and Nine 2 1
bladem2003 Posted December 24, 2024 Author Posted December 24, 2024 17 minutes ago, pixelsearch said: On my computer too, I can reproduce the behavior you described ("a window appears above the taskbar on the left side") According to msdn, if you use $WS_EX_NOACTIVATE and want your window to appear on the TaskBar, then you need to add the ExStyle $WS_EX_APPWINDOW BitOr($WS_EX_NOACTIVATE, $WS_EX_APPWINDOW) I tested it and it works. When the GUI is restored from the TaskBar and another window partially covers it, then clicking on your GUI doesn't bring it to the foreground (which is the purpose of $WS_EX_NOACTIVATE) Hope it helps @pixelsearch thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now