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. number of control on a dialog resource

number of control on a dialog resource

Scheduled Pinned Locked Moved C / C++ / MFC
questionlearning
3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I am using a form view as my view object. Using NT workstation 4.0 service pack 5, I can not insert any more control after 340 controls. My controls are only static and edit controls. I have a big table like a matrix. So I have to have around 500 controls. As far as I know, having much more controls on one form with Visual Basic is OK. But why not in VC. I have several other form views, I just switching forms one to other, without any trouble. What can be the reason for having the limited number of control on one dialog resource ?

    F K 2 Replies Last reply
    0
    • L Lost User

      I am using a form view as my view object. Using NT workstation 4.0 service pack 5, I can not insert any more control after 340 controls. My controls are only static and edit controls. I have a big table like a matrix. So I have to have around 500 controls. As far as I know, having much more controls on one form with Visual Basic is OK. But why not in VC. I have several other form views, I just switching forms one to other, without any trouble. What can be the reason for having the limited number of control on one dialog resource ?

      F Offline
      F Offline
      Feng Yuan
      wrote on last edited by
      #2

      Sounds like a bug in the IDE, edit the .rc file yourself.

      1 Reply Last reply
      0
      • L Lost User

        I am using a form view as my view object. Using NT workstation 4.0 service pack 5, I can not insert any more control after 340 controls. My controls are only static and edit controls. I have a big table like a matrix. So I have to have around 500 controls. As far as I know, having much more controls on one form with Visual Basic is OK. But why not in VC. I have several other form views, I just switching forms one to other, without any trouble. What can be the reason for having the limited number of control on one dialog resource ?

        K Offline
        K Offline
        Kurt 0
        wrote on last edited by
        #3

        As far as I know the resource compiler will not handle more than 255 controls correctly. May bew you could write you static text dynamically onto the view instead of using a control for every single text. Kurt

        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