Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Remove System Menu SystemMenu Box BoxOpen BoxesUpClose Minimize Maximize Restore Terminate BoxRemoveSystemMenu SetWindowLongA Style
#DefineFunction BoxRemoveSystemMenu(hwnd) sysmenu = ~524288 ;Removes System Menu Style User32 = StrCat(DirWindows(1),"USER32.DLL") OldStyle = DllCall(User32, long:"GetWindowLongA", long:hwnd, long:-16) NewStyle = OldStyle & sysmenu result = DllCall(User32, long:"SetWindowLongA", long:hwnd, long:-16, long:NewStyle) Return result #EndFunction hwnd=DllHwnd("") ; "" is shortcut for the WinBatch BoxOpen window BoxOpen("BoxRemoveSystemMenu","See that system menu items have been removed") BoxRemoveSystemMenu(hwnd) TimeDelay(5) BoxShut()
Article ID: W17903
Filename: Remove System Menu From Box.txt
File Created: 2012:04:04:08:25:30
Last Updated: 2012:04:04:08:25:30