I now know why I love working in C++ Builder. I'm doing (customer requirements) a project where the PC side is in Visual C++ 6.0, and am pulling hairs. I'm trying to do some simple things, and cannot begin to find where to do them.
The one I am trying now is to grey a menu line. I design it grayed, and it shows up not grayed. I use this code trying to change it's status...
CMenu* pSysMenu = GetSystemMenu(FALSE);
pSysMenu->EnableMenuItem(ID_BURN_FILEBURN,MF_GRAYED | MF_DISABLED);
and it remains not grayed. I've tried several flag combination (MF_BYCOMMAND or MF_BYPOSITION), they fail, but other functions like AppendMenu are working, so the handle retrieved is correct.
I said this is easy, but it's pretty urgent, so I'm paying out a lot.