I have an MFC application in which I would like to make the Restore Button Active or Inactive depending on the state of the application.
Currently, when I want Restore button to be inactive I Just Capture the Message sent by the Restore button and do nothing. But still the button looks active, even though the user really can't use the restore Button.
Is there a way show the button as inactive in MFC, similar to the way an menu element is shown as inactive.

