使用 EnableMenuItem函数将Mainframe中的某一个菜单不可用,同时变灰。
可如果想再次将该菜单可用的话,却不能变黑,仍然是灰色的,应该怎么处理呢?
请教各位高手

解决方案 »

  1.   

    BOOL EnableMenuItem(          HMENU hMenu,
        UINT uIDEnableItem,
        UINT uEnable
    );
    [in] Controls the interpretation of the uIDEnableItem parameter and indicate whether the menu item is enabled, disabled, or grayed. This parameter must be a combination of either MF_BYCOMMAND or MF_BYPOSITION and MF_ENABLED, MF_DISABLED, or MF_GRAYED. 肯定是你写的代码有问题。。我测试过都是OK的。