Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl::Paint optimization
ArrayCtrl::Paint optimization [message #895] Tue, 07 February 2006 14:01 Go to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
I think that ArrayCtrl::Paint can be optimized: The calculation of the status flags (approx 20 lines 614-633) could be moved into the if(w.IsPainting(r))) branch. The status flags are only needed if the cell will be painted.
Re: ArrayCtrl::Paint optimization [message #899 is a reply to message #895] Tue, 07 February 2006 14:47 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, might be true, but the real benefit is close zero... (if compared to the huge amount of code that is performed in Display etc...)

Mirek
Previous Topic: HeaderCtrl Background Color
Next Topic: ArrayCtrl strange colors in Navigate 602beta3 [BUG][FIXED]-Value problem
Goto Forum:
  


Current Time: Sat Apr 27 02:20:18 CEST 2024

Total time taken to generate the page: 0.04651 seconds