Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Need help on how to disable and enable button dynamically

Need help on how to disable and enable button dynamically

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
5 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John502
    wrote on last edited by
    #1

    Hi, I have created one button control dynamically. i have one requirement of need to visible the button whenever i have clicked on check box. If i uncheck the check box the button control should be un visible.. Can any one help me out how it is possible in the MFC..? Thanks Venki

    L _ 2 Replies Last reply
    0
    • J John502

      Hi, I have created one button control dynamically. i have one requirement of need to visible the button whenever i have clicked on check box. If i uncheck the check box the button control should be un visible.. Can any one help me out how it is possible in the MFC..? Thanks Venki

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      does this help?[^]

      Luc Pattyn [Forum Guidelines] [My Articles]


      - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


      CPalliniC G 2 Replies Last reply
      0
      • L Luc Pattyn

        does this help?[^]

        Luc Pattyn [Forum Guidelines] [My Articles]


        - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        Please don't tell the secret to everybody! :-D

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • J John502

          Hi, I have created one button control dynamically. i have one requirement of need to visible the button whenever i have clicked on check box. If i uncheck the check box the button control should be un visible.. Can any one help me out how it is possible in the MFC..? Thanks Venki

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          Disable and Visible are 2 different things. So you have to be specific as to which you want to set. 'Cause reading a person's mind through this forum is impossible. :) EnableWindow is for enable/disable and ShowWindow is for show/hide.

          «_Superman_»

          1 Reply Last reply
          0
          • L Luc Pattyn

            does this help?[^]

            Luc Pattyn [Forum Guidelines] [My Articles]


            - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


            G Offline
            G Offline
            grassrootkit
            wrote on last edited by
            #5

            Can you help me out with a CEditView SDI sample? I tried to search the standard Superpad application.. I couldn't locate a downloadable version.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups