04-05-2011, 06:48 AM
Thank you, this does exactly what I need...using this plus a menu with trigger as "x" button will open a menu making sure you want to close the window.
Original disabled maximize button got rid of setwinstyle to remove max button and changed the 3 to 4 int he for statement.
Macro Macro4
Thank you
Original disabled maximize button got rid of setwinstyle to remove max button and changed the 3 to 4 int he for statement.
Macro Macro4
int hWnd=win("Untitled - Notepad" "Notepad")
int hMenuHandle lngItemCount c style
hMenuHandle = GetSystemMenu(hWnd, 0);
lngItemCount = GetMenuItemCount(hMenuHandle);
for c lngItemCount-1 4 -1
,RemoveMenu(hMenuHandle, c, MF_BYPOSITION);
DrawMenuBar(hWnd)Thank you
