News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

DestroyMenu

Started by msmith, May 27, 2006, 06:55:38 AM

Previous topic - Next topic

msmith

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.

KSS

If you want good help always put example of your code.  :dazzled:
Because I can't understand you.

Ossa

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
Website (very old): ossa.the-wot.co.uk

msmith

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