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. Question about Group boxes

Question about Group boxes

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicstutorial
5 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 Offline
    L Offline
    Luis E Cuadrado
    wrote on last edited by
    #1

    Hello Everybody: I want to have a group box that becomes visible and invisible by clicking another object (it could be a button or even an Bitmap with WM_LBUTTONDOWN maybe). Is there a way that I can do this? If so, can you give me a quick example? Regards, Luis E. Cuadrado :0)

    J J 2 Replies Last reply
    0
    • L Luis E Cuadrado

      Hello Everybody: I want to have a group box that becomes visible and invisible by clicking another object (it could be a button or even an Bitmap with WM_LBUTTONDOWN maybe). Is there a way that I can do this? If so, can you give me a quick example? Regards, Luis E. Cuadrado :0)

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      The thing seems simple. Where are you stuck? Showing/hiding a control (or any window) can be achieved with ShowWindow. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      A 1 Reply Last reply
      0
      • J Joaquin M Lopez Munoz

        The thing seems simple. Where are you stuck? Showing/hiding a control (or any window) can be achieved with ShowWindow. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Thanks for the quick reply. Well, I'm stuck in showing and hiding the control itself. I'm not sure if a group box is considered a CStatic class, or a CButton class. But what I'm planning to do is in a Dialog, to have a Button or a Bitmap control and when I click that control the group box will appear. If you need more info, let me know. Gracias, Luis E.

        J 1 Reply Last reply
        0
        • A Anonymous

          Thanks for the quick reply. Well, I'm stuck in showing and hiding the control itself. I'm not sure if a group box is considered a CStatic class, or a CButton class. But what I'm planning to do is in a Dialog, to have a Button or a Bitmap control and when I click that control the group box will appear. If you need more info, let me know. Gracias, Luis E.

          J Offline
          J Offline
          Joaquin M Lopez Munoz
          wrote on last edited by
          #4

          Insert the group box into your dialog resource. Then, anywhere inside the dialog code, GetDlgItem(IDC_YOUR_GROUP_BOX) (or whatever identifier the box has) will give you a CWnd * on which you can call ShowWindow. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

          1 Reply Last reply
          0
          • L Luis E Cuadrado

            Hello Everybody: I want to have a group box that becomes visible and invisible by clicking another object (it could be a button or even an Bitmap with WM_LBUTTONDOWN maybe). Is there a way that I can do this? If so, can you give me a quick example? Regards, Luis E. Cuadrado :0)

            J Offline
            J Offline
            Jawache
            wrote on last edited by
            #5

            Just to make sure. Are you aware that showing and hiding a group box will not show or hide the controls in that box? Asim Hussain e: asim@jawache.net w: www.jawache.net

            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