Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable "x" button?
#4
sorry, it works

Macro Macro1563
Code:
Copy      Help
int hWnd=win("Untitled - Notepad" "Notepad")

int hMenuHandle;
int lngItemCount;
int c, style;

hMenuHandle = GetSystemMenu(hWnd, 0);
lngItemCount = GetMenuItemCount(hMenuHandle);

SetWinStyle hWnd WS_MAXIMIZEBOX 2

for c lngItemCount-1 3 -1
,RemoveMenu(hMenuHandle, c, MF_BYPOSITION);

DrawMenuBar(hWnd)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)