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.
If you don't allow the border to be resizable than the restore button grays out. I don't have the compiler so I cannot tell you the exact config but then changing them here and there should do the job for you.