Add ON_COMMAND(ID_STATUSBAR_PANE2,&CMainFrame::OnStatusbarPane2) to enable your status bar icon which is disabled (gray).