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.

This works:
Code:
	EnableMenuItem(hMenu, IDM_FILE_DATA_INPUT, MF_GRAYED);
	EnableMenuItem(hMenu, IDM_FILE_DATA_OUTPUT, MF_GRAYED);
but this doesn't
Code:
	EnableMenuItem(hMenu, IDM_FILE_DATA, MF_GRAYED);