tags:

views:

122

answers:

0

Hi,

I'm developing a Windows program in C using MFC and need to find out if a given menu (identified by a HMENU as returned by the GetMenu() function) is visible. Does anybody know how to do this?

One possibility might be to test whether there is a HWND for the HMENU (a window which displays the menu). Unfortunately I couldn't find a counterpart to GetMenu() which returns a HWND given a HMENU. If I had such a function, I could try calling IsWindowVisible() on the returned HWND.