I mentioned last time that there's an optimization in the treatment of the system menu which significantly reduces the number of menus in the system.
When a window has the WS_SYSMENU window style, it has a system menu, but until somebody calls GetSystemMenu on that window, nobody knows what its menu handle is. Until that point, the...