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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to make the mfc button as press & lock

How to make the mfc button as press & lock

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
11 Posts 4 Posters 0 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.
  • L LaHaHa

    I would like to know how to make a button which can toggle its button status. When you press it, it will down and remain unchange until you press it again. Please help! Alex

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #2

    Isn't there a property in the designer to turn this on ? Christian Graus - Microsoft MVP - C++

    L 1 Reply Last reply
    0
    • C Christian Graus

      Isn't there a property in the designer to turn this on ? Christian Graus - Microsoft MVP - C++

      L Offline
      L Offline
      LaHaHa
      wrote on last edited by
      #3

      I would like to know it. If you know, please tell me.

      C 1 Reply Last reply
      0
      • L LaHaHa

        I would like to know it. If you know, please tell me.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #4

        I'm wrong, it's radio buttons that have a push style. Maybe there's an article on the site about a push button like that ? Christian Graus - Microsoft MVP - C++

        L 1 Reply Last reply
        0
        • C Christian Graus

          I'm wrong, it's radio buttons that have a push style. Maybe there's an article on the site about a push button like that ? Christian Graus - Microsoft MVP - C++

          L Offline
          L Offline
          LaHaHa
          wrote on last edited by
          #5

          Do you have any suggestion? Please help!

          C 1 Reply Last reply
          0
          • L LaHaHa

            Do you have any suggestion? Please help!

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #6

            When I said 'maybe there's an article', I was suggesting that you search for one. This[^] looks like one example of a class that will do what you want, I think. Christian Graus - Microsoft MVP - C++

            1 Reply Last reply
            0
            • L LaHaHa

              I would like to know how to make a button which can toggle its button status. When you press it, it will down and remain unchange until you press it again. Please help! Alex

              P Offline
              P Offline
              P Rex
              wrote on last edited by
              #7

              why you dont use the radiobutton with push-like style? i think that would be the easiest way. P.

              L 1 Reply Last reply
              0
              • L LaHaHa

                I would like to know how to make a button which can toggle its button status. When you press it, it will down and remain unchange until you press it again. Please help! Alex

                B Offline
                B Offline
                BadKarma
                wrote on last edited by
                #8

                Hi there is a class where you can change the apperance of any button (normal button, radiobutton, checkbox). This way you can use a check box with the look of a normal button. http://www.codeproject.com/buttonctrl/cbuttonst.asp[^] Hope that this helps codito ergo sum

                L 1 Reply Last reply
                0
                • P P Rex

                  why you dont use the radiobutton with push-like style? i think that would be the easiest way. P.

                  L Offline
                  L Offline
                  LaHaHa
                  wrote on last edited by
                  #9

                  I think that using the radiobutton with push-like style is the easiest way, but how can I use it as I mentioned. Please help!

                  L 1 Reply Last reply
                  0
                  • L LaHaHa

                    I think that using the radiobutton with push-like style is the easiest way, but how can I use it as I mentioned. Please help!

                    L Offline
                    L Offline
                    LaHaHa
                    wrote on last edited by
                    #10

                    Ok la! Thank you very much!

                    1 Reply Last reply
                    0
                    • B BadKarma

                      Hi there is a class where you can change the apperance of any button (normal button, radiobutton, checkbox). This way you can use a check box with the look of a normal button. http://www.codeproject.com/buttonctrl/cbuttonst.asp[^] Hope that this helps codito ergo sum

                      L Offline
                      L Offline
                      LaHaHa
                      wrote on last edited by
                      #11

                      I use radiobutton to do it. Thank you very much!

                      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