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. Can't make any more buttons in VC++ / MFC (visual stuadio 2005).

Can't make any more buttons in VC++ / MFC (visual stuadio 2005).

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

    I can't make any more controlls... :( no more buttons, listboxes.. no even static text.. If I take something away, "delete one of the objects", Then I can 1 more on... But then it's maxed out again and won't make any more. My program is a big dialog with about 400 objects on it... Is there something mabey that has a max setting. I need to put on about 12 more objects into my dialog... Anyone got any ideas?

    PJ ArendsP H M 3 Replies Last reply
    0
    • A aquawicket

      I can't make any more controlls... :( no more buttons, listboxes.. no even static text.. If I take something away, "delete one of the objects", Then I can 1 more on... But then it's maxed out again and won't make any more. My program is a big dialog with about 400 objects on it... Is there something mabey that has a max setting. I need to put on about 12 more objects into my dialog... Anyone got any ideas?

      PJ ArendsP Offline
      PJ ArendsP Offline
      PJ Arends
      wrote on last edited by
      #2

      The resource editor does have a limit and you hit it. To add more controls you can always add them dynamically at run time using the Create functions.

      Within you lies the power for good; Use it!

      A 1 Reply Last reply
      0
      • PJ ArendsP PJ Arends

        The resource editor does have a limit and you hit it. To add more controls you can always add them dynamically at run time using the Create functions.

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

        Ok.. thanks.. to bad I can't just up the limit... Oh well.. I think I'll just go through all my static text objects and code them in.. That should free up bunches... Thanks for the info...

        1 Reply Last reply
        0
        • A aquawicket

          I can't make any more controlls... :( no more buttons, listboxes.. no even static text.. If I take something away, "delete one of the objects", Then I can 1 more on... But then it's maxed out again and won't make any more. My program is a big dialog with about 400 objects on it... Is there something mabey that has a max setting. I need to put on about 12 more objects into my dialog... Anyone got any ideas?

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Can you explain why you use of 400 objects,please?:)


          WhiteSky


          1 Reply Last reply
          0
          • A aquawicket

            I can't make any more controlls... :( no more buttons, listboxes.. no even static text.. If I take something away, "delete one of the objects", Then I can 1 more on... But then it's maxed out again and won't make any more. My program is a big dialog with about 400 objects on it... Is there something mabey that has a max setting. I need to put on about 12 more objects into my dialog... Anyone got any ideas?

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            IIRC a dialog resource has a limit of 255 controls. If you need more, you can create them in your WM_INITDIALOG handler.

            --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

            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