Closed piksel closed 1 year ago
I Could not get menus to be removed on windows, even when running the example. Looking at the code, it looks like there is a flag missing as per https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-removemenu#parameters.
This PR simply adds the "By Position" flag that indicates that the menus should be removed by position, not by ID (which is what the for i in 0..self.menus.len() seem to indicate is the case).
for i in 0..self.menus.len()
Thanks for the fix!
I Could not get menus to be removed on windows, even when running the example. Looking at the code, it looks like there is a flag missing as per https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-removemenu#parameters.
This PR simply adds the "By Position" flag that indicates that the menus should be removed by position, not by ID (which is what the
for i in 0..self.menus.len()
seem to indicate is the case).