当前位置: 代码迷 >> Windows Mobile >> 如何样在Mobile 5.0 Pocket PC下动态禁用和启用菜单的某一项
  详细解决方案

如何样在Mobile 5.0 Pocket PC下动态禁用和启用菜单的某一项

热度:315   发布时间:2016-04-25 07:55:52.0
怎么样在Mobile 5.0 Pocket PC下动态禁用和启用菜单的某一项啊
怎么样在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);
  相关解决方案