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. Drawing huge Views

Drawing huge Views

Scheduled Pinned Locked Moved C / C++ / MFC
questioncssgraphicsperformanceannouncement
4 Posts 2 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.
  • B Offline
    B Offline
    baerten
    wrote on last edited by
    #1

    Hi everybody :) in my application i open a view to display the "products information" In this view i have a TabControl within 3 Views. Each of these Views has more than 100 controls (labels with textboxes) So over 350 controls totally. If i open this window i freeze the Desktop-Screen and at the last execution point of my code, i release the Screen and redraw. I measured the elapsed time for all the work to show this window. It takes 0,3 seconds. If i remove all controls from the views, i get a time less than 0,1 seconds. Is there a possibility to speed up the traitment ( < 0,3seconds ) If not, why does it take exactly so long? Big thanks for any information. :thumbsup::)

    _ 1 Reply Last reply
    0
    • B baerten

      Hi everybody :) in my application i open a view to display the "products information" In this view i have a TabControl within 3 Views. Each of these Views has more than 100 controls (labels with textboxes) So over 350 controls totally. If i open this window i freeze the Desktop-Screen and at the last execution point of my code, i release the Screen and redraw. I measured the elapsed time for all the work to show this window. It takes 0,3 seconds. If i remove all controls from the views, i get a time less than 0,1 seconds. Is there a possibility to speed up the traitment ( < 0,3seconds ) If not, why does it take exactly so long? Big thanks for any information. :thumbsup::)

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      You could try to put the 100 controls into a dialog and add the dialog into the view instead of the controls.

      «_Superman_»

      B 1 Reply Last reply
      0
      • _ _Superman_

        You could try to put the 100 controls into a dialog and add the dialog into the view instead of the controls.

        «_Superman_»

        B Offline
        B Offline
        baerten
        wrote on last edited by
        #3

        I dont exactly know what you mean. But i use a CFormView as View. There is a Ressource Dialog with the textboxes. So i create the view with the dialog ressource. Thanks for your help :)

        _ 1 Reply Last reply
        0
        • B baerten

          I dont exactly know what you mean. But i use a CFormView as View. There is a Ressource Dialog with the textboxes. So i create the view with the dialog ressource. Thanks for your help :)

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          I'm not sure if this will improve the speed, but what I'm saying is that, instead of placing the 100 odd controls in the form view directly, place them in a new dialog and then place this dialog in the form view as a child dialog. The child dialog will need its border set to none.

          «_Superman_»

          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