Hi,

In my application I have a menu item (ID_MENUITEM) that is available on the mainframe menu as well as on the right context menu of a modeless dialog.

I need to know when the menu item gets invoked from the mainframe versus my dialog as I need to different things on each invokation.

Right now - whenever I have my dialog open - the dialog intercepts the WM_COMMAND message even though I am accessing the mainframe menu item.

If I don't have the dialog open; the mainframe command runs fine.

I am not sure what I am missing here.

Thanks,
MD