U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Mon Sep 14 00:09:11 GMT+2 2026

Total time taken to generate the page: 0.00522 seconds