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的。
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的。