I am trying to add a ribbon button dynamically based on certain situations, however it is added successfully but is not enable. Let say there are two cpp file, one that is a frame file, where I am loading the ribbon resource. And now there is a second file, say logic, where I am using the ribbon created in frame.cpp, and adding a button in a panel, based on certain conditions. But my problem is that, that particular button is added successfully, but is not visible. I tried handling its ON_UPDATE_COMMAND_UI, in frame.cpp, but no use. Please help. using cpp, mfc, vs15.
Aucun commentaire:
Enregistrer un commentaire