I am trying to figure out how to disable a menu item that is another popup. I would like to disable the 'File|Data' menu item instead of having to disable all the items seperately listed in this popup. I have attached a pict. for clarity.
Hopefully, I have explained myself adequately.
but this doesn'tCode:EnableMenuItem(hMenu, IDM_FILE_DATA_INPUT, MF_GRAYED); EnableMenuItem(hMenu, IDM_FILE_DATA_OUTPUT, MF_GRAYED);
Code:EnableMenuItem(hMenu, IDM_FILE_DATA, MF_GRAYED);