Hi. I'm new around here. I've programed in php, and decided I'll learn a little c++ to broaden my knowledge of the world. :)
It went well, by learning from a friend, book, net, but I came to a problem where I require your help. I'm writing MFC code in Visual Studio 2005, on XP machine. I know this is an ANSI list, but though I ask anyway maybe somebody had the same problem. I need to enable/disable some menu items. I've found that this function should be the answer for my problem: http://msdn2.microsoft.com/en-us/library/h62wh3y1.aspx And the code I came up till now: CMenu menu; CMenu *submenu; menu.LoadMenu(IDR_POPUP); submenu = menu.GetSubMenu(0); submenu->EnableMenuItem(ID_POPUP_CHANGEPASSWORD,MF_DISABLED | MF_GRAYED); According to the description of that function this should work... except it doesn't. The menu is still active. Thank you for your time, Regards, mmlado
