怎么样在Mobile 5.0 Pocket PC下动态禁用和启用菜单的某一项啊!!
HMENU g_hMenu = (HMENU)::SendMessage(mbi.hwndMB,SHCMBM_GETMENU,(WPARAM)0,(long)0);
::EnableMenuItem(g_hMenu,ID_MEUNITEM_ABOUT,MF_GRAYED | MF_BYCOMMAND | MF_DISABLED);//隐藏子菜单
用的是这个代码....
------解决方案--------------------
HMENU g_hMenu = (HMENU)::SendMessage(mbi.hwndMB,SHCMBM_GETSUBMENU,(WPARAM)0,(long)ID);