Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable "x" button?
#10
Run this macro. What is ID of menu item "Close"?

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

int i hMenuHandle = GetSystemMenu(hWnd, 0);

for i 0 GetMenuItemCount(hMenuHandle)
,GetMenuString hMenuHandle i _s.all(300) 300 MF_BYPOSITION
,out "0x%X %s" GetMenuItemID(hMenuHandle i) _s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)