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. change groupbox color (MFC)

change groupbox color (MFC)

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
7 Posts 3 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.
  • W Offline
    W Offline
    waxie
    wrote on last edited by
    #1

    Is there a way to change the background color of a groupbox? Thanks,:rose: waxie

    O 1 Reply Last reply
    0
    • W waxie

      Is there a way to change the background color of a groupbox? Thanks,:rose: waxie

      O Offline
      O Offline
      Owner drawn
      wrote on last edited by
      #2

      Since groupboxes are also buttons, I guess you have to owner draw(not me ;P) them.

      Jesus Loves:rose:

      --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

      W T 2 Replies Last reply
      0
      • O Owner drawn

        Since groupboxes are also buttons, I guess you have to owner draw(not me ;P) them.

        Jesus Loves:rose:

        --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

        W Offline
        W Offline
        waxie
        wrote on last edited by
        #3

        Well, i guess I have no choice then. I should do you.:laugh: Now I see where you got your name. How stupid of me to realize it just now. waxie

        1 Reply Last reply
        0
        • O Owner drawn

          Since groupboxes are also buttons, I guess you have to owner draw(not me ;P) them.

          Jesus Loves:rose:

          --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          Owner drawn wrote:

          Since groupboxes are also buttons

          you meant CStatic, didn't you ?


          TOXCCT >>> GEII power
          [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

          O 1 Reply Last reply
          0
          • T toxcct

            Owner drawn wrote:

            Since groupboxes are also buttons

            you meant CStatic, didn't you ?


            TOXCCT >>> GEII power
            [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

            O Offline
            O Offline
            Owner drawn
            wrote on last edited by
            #5

            toxcct wrote:

            you meant CStatic, didn't you ?

            No. Take a look at BS_GROUPBOX.

            Jesus Loves:rose:

            --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

            T 1 Reply Last reply
            0
            • O Owner drawn

              toxcct wrote:

              you meant CStatic, didn't you ?

              No. Take a look at BS_GROUPBOX.

              Jesus Loves:rose:

              --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              i'm struggling... what about SS_GRAYFRAME CStatic style ? :omg:


              TOXCCT >>> GEII power
              [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

              O 1 Reply Last reply
              0
              • T toxcct

                i'm struggling... what about SS_GRAYFRAME CStatic style ? :omg:


                TOXCCT >>> GEII power
                [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]

                O Offline
                O Offline
                Owner drawn
                wrote on last edited by
                #7

                toxcct wrote:

                i'm struggling...

                It happens... MSDN about group box: The control is created as a BUTTON class with the BS_GROUPBOX, WS_CHILD, and WS_GROUP styles.

                Jesus Loves:rose:

                --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

                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