You need to process UPDATE_COMMAND_UI somewhere in your framework for the controls ID, just like you would any other button or menu item. for example:void CMainFrame::OnUpdateFilterProps(CCmdUI* pCmdUI) { BOOL bEnable = IsThisActive(); //(test condition) pCmdUI->Enable(bEnable);}
{
BOOL bEnable = IsThisActive(); //(test condition)
pCmdUI->Enable(bEnable);}