1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make the Restore Box inactive ?

Discussion in 'MFC' started by Cosmic_egg, Jul 22, 2008.

  1. Cosmic_egg

    Cosmic_egg New Member

    Joined:
    Jul 21, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    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.
     
  3. Cosmic_egg

    Cosmic_egg New Member

    Joined:
    Jul 21, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    0

Share This Page