WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Hiding-Disabling Apps to Prevent User Intervention

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Removing Minimize and Maximize Menus

Keywords: 	  Removing Minimize and Maximize Menus

NOTE: This may not work with XP themed windows.
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
File Created: 2003:08:25:08:45:40
Last Updated: 2003:08:25:08:45:40