Quote:Original post by Erik Rufelt
Many menu functions have flags where you can specify MF_BYPOSITION to give it the index of the menu-item instead of the ID.
Hmm, I don't know if that applies here. I finally hacked it into working by doing this:
EnableMenuItem(GetMenu(hWnd),(unsigned int)(unsigned __int64)GetSubMenu(GetMenu(hWnd),3),MF_GRAYED);
I wonder if that is bad... lol