mike1950r Posted August 10, 2023 Share Posted August 10, 2023 Hi, how can I Enable / Disable the "Close Window" entry in program button in taskbar? Thanks for assistance. Cheers mike Link to comment Share on other sites More sharing options...
Andreik Posted August 10, 2023 Share Posted August 10, 2023 (edited) Do you mean the context menu item "Close Window" from taskbar app icons? Don't know if something like this is possible but you can hide the app from taskbar if the window has WS_EX_TOOLWINDOW extended style. Edited August 10, 2023 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
mike1950r Posted August 10, 2023 Author Share Posted August 10, 2023 hi andreik, yes this is what i mean. but i fear that this is not possible. it's just to prevent that the user closes the app while it is busy with a task. thanks anyway cheers mike Link to comment Share on other sites More sharing options...
mike1950r Posted August 10, 2023 Author Share Posted August 10, 2023 just another question: which event (keystroke) sends the context menu item "Close Window" from taskbar? Thanks for info Cheers mike Link to comment Share on other sites More sharing options...
Solution mike1950r Posted August 10, 2023 Author Solution Share Posted August 10, 2023 ok, finally found the solution: Opt("GUIOnEventMode", 1) GUISetOnEvent($GUI_EVENT_CLOSE, "Ignore", $hGUI1) Do, what has to be done without interuption ... Opt("GUIOnEventMode", 0) That's it. Cheers mike Link to comment Share on other sites More sharing options...
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