Task:
Allows the host application to disable menu items
Activation:
Always activated
Parameters:
Meaning of the parameter lParam:
lParam: menu handle
Hints:
This callback is called when List & Label changes or updates the menu. The application can then enable or disable menu items previously inserted by LL_CMND_MODIFYMENU.
Example:
case LL_CMND_ENABLEMENU:
if
(<whatever>)
EnableMenuItem(hMenu,
IDM_MYMENU, MF_ENABLED|MF_BYCOMMAND);
else
EnableMenuItem(hMenu, IDM_MYMENU,
MF_DISABLED|MF_GRAYED|MF_BYCOMMAND);
break;