Enable Menu

Enable Menu

Hi,
I would like to know which function to use in order to enable or disable a menu item.Should I use
dummyl=EnableMenuItem(ghchildMenu,3,MF_DISABLED)
or
SendMessage( GetDlgItem( hDlg, IDC_REALTIME_PRIORITY_CLASS), BM_SETCHECK, 1, 0);
If I use sendmessage what are parameters for that function to enable the menu
Also to change the text(caption) displayed in the menu what function should I use.Thanks,
-SD

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.