SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Mon Jun 30, 2008 2:44 pm Post subject: Re: minimizebutton removal (using setwindowlong) |
|
|
| ricke wrote: | | I want to remove minimize and maximize button from a running program (for exampel Notepad.exe) |
| Code: | ^F2::WinSet, Style, -0x30000, A ; WS_MAXIMIZEBOX 0x10000 + WS_MINIMIZEBOX 0x20000
^F3::WinSet, Style, +0x30000, A ; WS_MAXIMIZEBOX 0x10000 + WS_MINIMIZEBOX 0x20000 |
Run the above code. Ctrl+F2 will remove the buttons and Ctrl+F3 would bring them back.
Edit:
On a related note, The following creates a ToolWindow alike window, but with a regular-sized Titlebar and show in Alt-Tab:
| Code: | Gui 1:+Owner -0x30000
Gui, 1:Show, w640 h480 |
_________________

Last edited by SKAN on Tue Jul 01, 2008 10:55 pm; edited 1 time in total |
|