Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Skining framework and CComboBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Skining framework and CComboBox

 Post Reply Post Reply
Author
Message
crystyce View Drop Down
Groupie
Groupie


Joined: 19 August 2008
Location: Romania
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote crystyce Quote  Post ReplyReply Direct Link To This Post Topic: Skining framework and CComboBox
    Posted: 05 February 2009 at 5:02am
Hello

I have a MDI project using the Codejock skining framework and i encounter some problems when using a CComboBox.

Although I know it's not good practice I am forced to fill a lot of ComboBoxes (many times) with a lot of strings (15000+). The problem is the filling is very slow then using the skin framework.

I attached a test project, a simple dialog project:

20090205_050056_combotest.zip

when not using the skinning sytem the time for loading 15000 items in the combo box: 703 miliseconds

Then just add this line:

XTPSkinManager()->LoadSkin(_T("Office2007.cjstyles"));

and the time for loading is 12062 miliseconds. That's huge!

I give my user the possibility to filter the combo so even if a only have about 2000 items it is still unacceptable to go from instantly to 1.5 seconds...

Release version isn't better either. And this is on my quad core Xeon machine I don't even want to imagine what happens on slower machines. I'm working on this for the last week with no success. I absolutely need both things working.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2009 at 6:24am

Hi,

For such long operations always use SetRedraw API:
 
 pControl->SetRedraw(FALSE);
...
 pControl->SetRedraw(TRUE);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
crystyce View Drop Down
Groupie
Groupie


Joined: 19 August 2008
Location: Romania
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote crystyce Quote  Post ReplyReply Direct Link To This Post Posted: 05 February 2009 at 10:41am
thanks a mill Oleg, works great!
     Product: Xtreme SuitePro (MFC) version 13.1.0
     Platform: Windows XP (32bit) - SP 2
     Language: Visual C++ 2008
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.