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. ToolBar Performance Hit

ToolBar Performance Hit

Scheduled Pinned Locked Moved C / C++ / MFC
beta-testingperformancequestionannouncementcode-review
2 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.
  • J Offline
    J Offline
    Jnewg5
    wrote on last edited by
    #1

    I have a MDI application with a customized toolbar. This toolbar has up to 4 edit boxes (command profile configurable) that get updated and provide feedback of geo-coordinates(MTM, UTM, Lat/Long,etc). I have noticed that my toolbar works fine until I add another toolbar to the app. The other toolbars are not dynamic in nature like the coordinate toolbar, so it really shouldn't hit the performance of the coordinate toolbar's editbox updates, but it does. The update of the coordinate toolbar's editboxes are driven by mouse movements(OnMouseMove). Any ideas? Thanks!

    N 1 Reply Last reply
    0
    • J Jnewg5

      I have a MDI application with a customized toolbar. This toolbar has up to 4 edit boxes (command profile configurable) that get updated and provide feedback of geo-coordinates(MTM, UTM, Lat/Long,etc). I have noticed that my toolbar works fine until I add another toolbar to the app. The other toolbars are not dynamic in nature like the coordinate toolbar, so it really shouldn't hit the performance of the coordinate toolbar's editbox updates, but it does. The update of the coordinate toolbar's editboxes are driven by mouse movements(OnMouseMove). Any ideas? Thanks!

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      OnUpdate handlers are called for each toolbar button during idle processing etc. You need to keep the amount of time each handler spends doing whatever it does to a minimum. If your the calc's for your edit boxes take too long you will see sluggish performance. Mousemoves can be sent with the same coordinates as the previous call. You should check if they've changed and if not do zip. Also look at profiling your code. I personally like Glowcode www.glowcode.com[^] Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com

      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