![]() |
Skining framework and CComboBox |
Post Reply
|
| Author | |
crystyce
Groupie
Joined: 19 August 2008 Location: Romania Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Topic: Skining framework and CComboBoxPosted: 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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
crystyce
Groupie
Joined: 19 August 2008 Location: Romania Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |