When I use DestroyMenu, it returns a 1 (successful), but the menu stays and the dropdowns still work.
According to MSDN, it s supposed to destroy the menu whose handle is specified and recusively destroy all submenus.
If I do another DestroyMenu after the first one, it returns a 0 (error) as it should, so the first DestroyMenu is doing something. It is like it destroying the menu internally, but not on the display. (and the dropdowns still work)
I also tried an InvalidateRect on the window to no avail.
If you want good help always put example of your code. :dazzled:
Because I can't understand you.
Is the menu assigned to a window? I'm not sure that it would work in that case, as windows would be handling it then.
Ossa
Quote
Is the menu assigned to a window? I'm not sure that it would work in that case, as windows would be handling it then.
This is the key.
If I do an invoke Setmenu,[Hwnd],0 first, then it works fine.
Thanks,
Mike