Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issue of menu click failure caused by excessive menu updates (#…
…77) 1. make the menu identifier never greater than 0xFFFF due to the WM_COMMAND message only provides an unsigned 16-bit integer menu identifier. ref: https://learn.microsoft.com/en-us/windows/win32/menurc/wm-command 2. old menu items are never reused, should delete by DeleteMenu() instead of RemoveMenu(), DeleteMenu() destroys the handle to the menu or submenu and frees the memory. ref: https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-deletemenu https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-removemenu
- Loading branch information