Removing Minimize and Maximize Menus
Keywords: Removing Minimize and Maximize Menus
sc_minimize= 61472 ; 0x0F020
sc_maximize= 61488 ; 0x0F030
IntControl(12,1+4,0,0,0)
BoxOpen("Hello","There")
hwnd=DllHwnd("") ; "" is shortcut for the WInBatch BoxOpen window
sysmenu=DllCall(strcat(DirWindows(1),"USER32.DLL"),long:"GetSystemMenu",long:hwnd,long:0)
DllCall(strcat(DirWindows(1),"USER32.DLL"),long:"RemoveMenu",long:sysmenu,long:sc_minimize,long:0)
DllCall(strcat(DirWindows(1),"USER32.DLL"),long:"RemoveMenu",long:sysmenu,long:sc_maximize,long:0)
TimeDelay(10)
Article ID: W14367
Filename: Removing Minimize and Maximize Menus.txt