Print Page | Close Window

Skining framework and CComboBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13337
Printed Date: 23 June 2025 at 4:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skining framework and CComboBox
Posted By: crystyce
Subject: Skining framework and CComboBox
Date 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:

uploads/20090205_050056_combotest.zip - 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.



Replies:
Posted By: Oleg
Date 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


Posted By: crystyce
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net